1 | <sect2>
|
---|
2 | <title>Installation of Glibc</title>
|
---|
3 |
|
---|
4 | <para>
|
---|
5 | Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
---|
6 | /usr/src. Don't enter the created directories. Just unpack them and
|
---|
7 | leave it with that.
|
---|
8 | </para>
|
---|
9 |
|
---|
10 | <para>
|
---|
11 | Install Glibc by running the following commands:
|
---|
12 | </para>
|
---|
13 |
|
---|
14 | <blockquote><literallayout>
|
---|
15 |
|
---|
16 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
17 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
18 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
19 | <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
---|
20 | <userinput> ../glibc-2.2.1/malloc/Makefile
|
---|
21 | > tmp~ &&</userinput>
|
---|
22 | <userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &&
|
---|
23 | </userinput>
|
---|
24 | <userinput>sed "s/root/0/" ../glibc-2.2.1/login/Makefile
|
---|
25 | > tmp~ && </userinput>
|
---|
26 | <userinput>mv tmp~ ../glibc-2.2.1/login/Makefile &&
|
---|
27 | </userinput>
|
---|
28 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
29 | <userinput> --prefix=/usr --enable-add-ons
|
---|
30 | \</userinput>
|
---|
31 | <userinput> --libexecdir=/usr/bin &&
|
---|
32 | </userinput>
|
---|
33 | <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
---|
34 | \</userinput>
|
---|
35 | <userinput> config.make > config.make~
|
---|
36 | &&</userinput>
|
---|
37 | <userinput>mv config.make~ config.make &&</userinput>
|
---|
38 | <userinput>make &&</userinput>
|
---|
39 | <userinput>make install &&</userinput>
|
---|
40 | <userinput>make localedata/install-locales</userinput>
|
---|
41 |
|
---|
42 | </literallayout></blockquote>
|
---|
43 |
|
---|
44 | <para>
|
---|
45 | You can get rid of the "I have no name!" in the bash prompt if you want
|
---|
46 | to by exiting chroot and re-entering it. Run the following commands to do
|
---|
47 | that:
|
---|
48 | </para>
|
---|
49 |
|
---|
50 | <blockquote><literallayout>
|
---|
51 |
|
---|
52 | <userinput>logout</userinput>
|
---|
53 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
---|
54 | \</userinput>
|
---|
55 | <userinput> TERM=$TERM /bin/bash --login</userinput>
|
---|
56 |
|
---|
57 | </literallayout></blockquote>
|
---|
58 |
|
---|
59 | </sect2>
|
---|
60 |
|
---|