[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 |
|
---|
[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>
|
---|
[1cbb49f] | 40 | <userinput>make localedata/install-locales &&</userinput>
|
---|
[6370fa6] | 41 |
|
---|
| 42 | </literallayout></blockquote>
|
---|
| 43 |
|
---|
[7e37742] | 44 | <para>
|
---|
[08463b5b] | 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:
|
---|
[7e37742] | 48 | </para>
|
---|
| 49 |
|
---|
| 50 | <blockquote><literallayout>
|
---|
| 51 |
|
---|
[5aabada8] | 52 | <userinput>logout</userinput>
|
---|
[5910fc36] | 53 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
---|
| 54 | \</userinput>
|
---|
| 55 | <userinput> TERM=$TERM /bin/bash --login</userinput>
|
---|
[7e37742] | 56 |
|
---|
| 57 | </literallayout></blockquote>
|
---|
| 58 |
|
---|
[6370fa6] | 59 | </sect2>
|
---|
| 60 |
|
---|