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.
|
---|
7 | </para>
|
---|
8 |
|
---|
9 | <para>
|
---|
10 | Install Glibc by running the following commands:
|
---|
11 | </para>
|
---|
12 |
|
---|
13 | <blockquote><literallayout>
|
---|
14 |
|
---|
15 | <userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
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 | By exiting the chroot'ed environment and re-entering it, you will be
|
---|
46 | able to get rid of the "I have no name!" message in the command prompt,
|
---|
47 | which is caused by bash's inability to resolve a userid to a username.
|
---|
48 | You don't have to exit and re-enter chroot, but it's highly recommended
|
---|
49 | to ensure a properly working bash.
|
---|
50 | </para>
|
---|
51 |
|
---|
52 | <para>
|
---|
53 | Run the following commands to accomplish this:
|
---|
54 | </para>
|
---|
55 |
|
---|
56 | <blockquote><literallayout>
|
---|
57 |
|
---|
58 | <userinput>logout</userinput>
|
---|
59 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
---|
60 | \</userinput>
|
---|
61 | <userinput> TERM=$TERM /bin/bash --login</userinput>
|
---|
62 |
|
---|
63 | </literallayout></blockquote>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|