[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>
|
---|
[2c8e54a] | 14 | <userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
[6ca39ca] | 15 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
| 16 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
| 17 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
[08fc41a] | 18 | <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
---|
| 19 | <userinput> ../glibc-2.2.1/malloc/Makefile
|
---|
| 20 | > tmp~ &&</userinput>
|
---|
| 21 | <userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &&
|
---|
| 22 | </userinput>
|
---|
[a0fcc02] | 23 | <userinput>sed "s/root/0/" ../glibc-2.2.1/login/Makefile
|
---|
| 24 | > tmp~ && </userinput>
|
---|
| 25 | <userinput>mv tmp~ ../glibc-2.2.1/login/Makefile &&
|
---|
| 26 | </userinput>
|
---|
[81797d0a] | 27 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
[6370fa6] | 28 | <userinput> --prefix=/usr --enable-add-ons
|
---|
| 29 | \</userinput>
|
---|
| 30 | <userinput> --libexecdir=/usr/bin &&
|
---|
| 31 | </userinput>
|
---|
[6ca39ca] | 32 | <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
---|
| 33 | \</userinput>
|
---|
| 34 | <userinput> config.make > config.make~
|
---|
| 35 | &&</userinput>
|
---|
| 36 | <userinput>mv config.make~ config.make &&</userinput>
|
---|
[6370fa6] | 37 | <userinput>make &&</userinput>
|
---|
[81797d0a] | 38 | <userinput>make install &&</userinput>
|
---|
[9b7fdcb] | 39 | <userinput>make localedata/install-locales</userinput>
|
---|
[6370fa6] | 40 | </literallayout></blockquote>
|
---|
| 41 |
|
---|
[0e347034] | 42 | <para>
|
---|
| 43 | During the configure stage you will see the following warning:
|
---|
| 44 | </para>
|
---|
| 45 |
|
---|
| 46 | <blockquote><screen>
|
---|
| 47 | configure: warning:
|
---|
| 48 | *** An auxiliary program is missing or too old;
|
---|
| 49 | *** some features will be disabled.
|
---|
| 50 | *** Check the INSTALL file for required versions.
|
---|
| 51 | </screen></blockquote>
|
---|
| 52 |
|
---|
| 53 | <para>
|
---|
| 54 | This warning refers to the missing msgfmt program from the gettext
|
---|
| 55 | package. But there is nothing to worry about: Glib will still be
|
---|
| 56 | installed the same way as when msgfmt is present. It can safely be
|
---|
| 57 | ignored in our case.
|
---|
| 58 | </para>
|
---|
| 59 |
|
---|
[7e37742] | 60 | <para>
|
---|
[8a7a48f7] | 61 | By exiting the chroot'ed environment and re-entering it, you will be
|
---|
| 62 | able to get rid of the "I have no name!" message in the command prompt,
|
---|
| 63 | which is caused by bash's inability to resolve a userid to a username.
|
---|
| 64 | You don't have to exit and re-enter chroot, but it's highly recommended
|
---|
| 65 | to ensure a properly working bash.
|
---|
[7e37742] | 66 | </para>
|
---|
| 67 |
|
---|
[ba3c4d3] | 68 | <para>
|
---|
[8a7a48f7] | 69 | Run the following commands to accomplish this:
|
---|
[ba3c4d3] | 70 | </para>
|
---|
[7e37742] | 71 |
|
---|
[ba3c4d3] | 72 | <blockquote><literallayout>
|
---|
[7cd0ecb] | 73 | <userinput>logout</userinput>
|
---|
| 74 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
---|
| 75 | \</userinput>
|
---|
| 76 | <userinput> TERM=$TERM /bin/bash --login</userinput>
|
---|
[ba3c4d3] | 77 |
|
---|
[7e37742] | 78 | </literallayout></blockquote>
|
---|
| 79 |
|
---|
[6370fa6] | 80 | </sect2>
|
---|
| 81 |
|
---|