1 | <sect2>
|
---|
2 | <title>Installation of Glibc</title>
|
---|
3 |
|
---|
4 | <para>
|
---|
5 | Note: zoneinfo files (/usr/share/zoneinfo/*) are not being installed yet
|
---|
6 | due to an unknown problem with the move to chapter 6.
|
---|
7 | </para>
|
---|
8 |
|
---|
9 | <para>
|
---|
10 | Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
---|
11 | /usr/src. Don't enter the created directories. Just unpack them and
|
---|
12 | leave it with that.
|
---|
13 | </para>
|
---|
14 |
|
---|
15 | <para>
|
---|
16 | A few default parameters of Glibc need to be changed, such as the
|
---|
17 | directory where the shared libraries are supposed to be installed in and
|
---|
18 | the directory that contains the system configuration files. For this
|
---|
19 | purpose you need to create the <filename class="directory">
|
---|
20 | /usr/src/glibc-build</filename> directory and cd into that directory
|
---|
21 | with:
|
---|
22 | </para>
|
---|
23 |
|
---|
24 | <blockquote><literallayout>
|
---|
25 |
|
---|
26 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
27 | <userinput>cd /usr/src/glibc-build</userinput>
|
---|
28 |
|
---|
29 | </literallayout></blockquote>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | In that directory you create a new file <filename>configparms</filename>
|
---|
33 | by running the following:
|
---|
34 | </para>
|
---|
35 |
|
---|
36 | <literallayout>
|
---|
37 |
|
---|
38 | <userinput>cat > configparms << "EOF"</userinput>
|
---|
39 | # Begin configparms
|
---|
40 |
|
---|
41 | slibdir=/lib
|
---|
42 | sysconfdir=/etc
|
---|
43 |
|
---|
44 | # End configparms
|
---|
45 | <userinput>EOF</userinput>
|
---|
46 |
|
---|
47 | </literallayout>
|
---|
48 |
|
---|
49 | <para>
|
---|
50 | Change to the
|
---|
51 | <filename class="directory">/usr/src/glibc-build</filename>
|
---|
52 | directory and install Glibc by running the following commands:
|
---|
53 | </para>
|
---|
54 |
|
---|
55 | <blockquote><literallayout>
|
---|
56 |
|
---|
57 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
58 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
59 | <userinput> --prefix=/usr --enable-add-ons
|
---|
60 | \</userinput>
|
---|
61 | <userinput> --libexecdir=/usr/bin &&
|
---|
62 | </userinput>
|
---|
63 | <userinput>make &&</userinput>
|
---|
64 | <userinput>make install &&</userinput>
|
---|
65 | <userinput>make localedata/install-locales</userinput>
|
---|
66 |
|
---|
67 | </literallayout></blockquote>
|
---|
68 |
|
---|
69 | <para>
|
---|
70 | You can get rid of the "I have no name!" in the bash prompt if you want.
|
---|
71 | Do this by exiting chroot and re-entering it. Run the following
|
---|
72 | commands to do that:
|
---|
73 | </para>
|
---|
74 |
|
---|
75 | <blockquote><literallayout>
|
---|
76 |
|
---|
77 | <userinput>logout &&</userinput>
|
---|
78 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
|
---|
79 | --login</userinput>
|
---|
80 |
|
---|
81 | </literallayout></blockquote>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|