1 | <sect2>
|
---|
2 | <title>Installation of Glibc</title>
|
---|
3 |
|
---|
4 | <para>
|
---|
5 | Unpack the glibc-crypt and glibc-linuxthreads in the glibc-2.1.3
|
---|
6 | directory, not in /usr/src. Don't enter the created directories. Just
|
---|
7 | unpack them and leave it with that.
|
---|
8 | </para>
|
---|
9 |
|
---|
10 | <para>
|
---|
11 | A few default parameters of Glibc need to be changed, such as the
|
---|
12 | directory where the shared libraries are supposed to be installed in and
|
---|
13 | the directory that contains the system configuration files. For this
|
---|
14 | purpose you need to create the <filename class="directory">
|
---|
15 | $LFS/usr/src/glibc-build</filename> directory and cd into that directory
|
---|
16 | with:
|
---|
17 | </para>
|
---|
18 |
|
---|
19 | <blockquote><literallayout>
|
---|
20 |
|
---|
21 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
22 | <userinput>cd /usr/src/glibc-build</userinput>
|
---|
23 |
|
---|
24 | </literallayout></blockquote>
|
---|
25 |
|
---|
26 | <para>
|
---|
27 | In that directory you create a new file <filename>configparms</filename>
|
---|
28 | by running the following:
|
---|
29 | </para>
|
---|
30 |
|
---|
31 | <literallayout>
|
---|
32 |
|
---|
33 | <userinput>cat > configparms << "EOF"</userinput>
|
---|
34 | # Begin configparms
|
---|
35 |
|
---|
36 | slibdir=/lib
|
---|
37 | sysconfdir=/etc
|
---|
38 |
|
---|
39 | # End configparms
|
---|
40 | <userinput>EOF</userinput>
|
---|
41 |
|
---|
42 | </literallayout>
|
---|
43 |
|
---|
44 | <para>
|
---|
45 | Change to the
|
---|
46 | <filename class="directory">$LFS/usr/src/glibc-build</filename>
|
---|
47 | directory and install Glibc by running the following commands:
|
---|
48 | </para>
|
---|
49 |
|
---|
50 | <blockquote><literallayout>
|
---|
51 |
|
---|
52 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
53 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
54 | <userinput> --prefix=/usr --enable-add-ons
|
---|
55 | \</userinput>
|
---|
56 | <userinput> --with-headers=$LFS/usr/include
|
---|
57 | \</userinput>
|
---|
58 | <userinput> --libexecdir=/usr/bin &&
|
---|
59 | </userinput>
|
---|
60 | <userinput>make &&</userinput>
|
---|
61 | <userinput>make install &&</userinput>
|
---|
62 | <userinput>make localedata/install-locales</userinput>
|
---|
63 |
|
---|
64 | </literallayout></blockquote>
|
---|
65 |
|
---|
66 | </sect2>
|
---|
67 |
|
---|