[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Glibc</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
[8acf9c0e] | 5 | Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
---|
[20a1196] | 6 | /usr/src.
|
---|
[6370fa6] | 7 | </para>
|
---|
| 8 |
|
---|
| 9 | <para>
|
---|
[1fc778e] | 10 | Install Glibc by running the following commands:
|
---|
[6370fa6] | 11 | </para>
|
---|
| 12 |
|
---|
| 13 | <blockquote><literallayout>
|
---|
| 14 |
|
---|
[2c8e54a] | 15 | <userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
[6ca39ca] | 16 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
| 17 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
| 18 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
[08fc41a] | 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>
|
---|
[a0fcc02] | 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>
|
---|
[81797d0a] | 28 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
[6370fa6] | 29 | <userinput> --prefix=/usr --enable-add-ons
|
---|
| 30 | \</userinput>
|
---|
| 31 | <userinput> --libexecdir=/usr/bin &&
|
---|
| 32 | </userinput>
|
---|
[6ca39ca] | 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>
|
---|
[6370fa6] | 38 | <userinput>make &&</userinput>
|
---|
[81797d0a] | 39 | <userinput>make install &&</userinput>
|
---|
[9b7fdcb] | 40 | <userinput>make localedata/install-locales</userinput>
|
---|
[6370fa6] | 41 |
|
---|
| 42 | </literallayout></blockquote>
|
---|
| 43 |
|
---|
[7e37742] | 44 | <para>
|
---|
[8a7a48f7] | 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.
|
---|
[7e37742] | 50 | </para>
|
---|
| 51 |
|
---|
[ba3c4d3] | 52 | <para>
|
---|
[8a7a48f7] | 53 | Run the following commands to accomplish this:
|
---|
[ba3c4d3] | 54 | </para>
|
---|
[7e37742] | 55 |
|
---|
[ba3c4d3] | 56 | <blockquote><literallayout>
|
---|
[7cd0ecb] | 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>
|
---|
[ba3c4d3] | 62 |
|
---|
[7e37742] | 63 | </literallayout></blockquote>
|
---|
| 64 |
|
---|
[6370fa6] | 65 | </sect2>
|
---|
| 66 |
|
---|