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