[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Glibc</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
[84479a6] | 5 | Unpack the glibc-linuxthreads in the glibc-&glibc-version; 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 |
|
---|
[3229c6b] | 13 | <para>
|
---|
| 14 | <screen>
|
---|
| 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-&glibc-version;/malloc/Makefile > tmp~ &&</userinput>
|
---|
| 21 | <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput>
|
---|
| 22 | <userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput>
|
---|
| 23 | <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput>
|
---|
| 24 | <userinput>../glibc-&glibc-version;/configure \</userinput>
|
---|
| 25 | <userinput> --prefix=/usr --enable-add-ons \</userinput>
|
---|
| 26 | <userinput> --libexecdir=/usr/bin &&</userinput>
|
---|
| 27 | <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/ \</userinput>
|
---|
| 28 | <userinput> config.make > config.make~ &&</userinput>
|
---|
| 29 | <userinput>mv config.make~ config.make &&</userinput>
|
---|
| 30 | <userinput>make &&</userinput>
|
---|
| 31 | <userinput>make install &&</userinput>
|
---|
| 32 | <userinput>make localedata/install-locales</userinput>
|
---|
| 33 | </screen>
|
---|
| 34 | </para>
|
---|
[6370fa6] | 35 |
|
---|
[0e347034] | 36 | <para>
|
---|
| 37 | During the configure stage you will see the following warning:
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
| 40 | <blockquote><screen>
|
---|
| 41 | configure: warning:
|
---|
| 42 | *** An auxiliary program is missing or too old;
|
---|
| 43 | *** some features will be disabled.
|
---|
| 44 | *** Check the INSTALL file for required versions.
|
---|
| 45 | </screen></blockquote>
|
---|
| 46 |
|
---|
| 47 | <para>
|
---|
| 48 | This warning refers to the missing msgfmt program from the gettext
|
---|
| 49 | package. But there is nothing to worry about: Glib will still be
|
---|
| 50 | installed the same way as when msgfmt is present. It can safely be
|
---|
| 51 | ignored in our case.
|
---|
| 52 | </para>
|
---|
| 53 |
|
---|
[7e37742] | 54 | <para>
|
---|
[8a7a48f7] | 55 | By exiting the chroot'ed environment and re-entering it, you will be
|
---|
| 56 | able to get rid of the "I have no name!" message in the command prompt,
|
---|
| 57 | which is caused by bash's inability to resolve a userid to a username.
|
---|
| 58 | You don't have to exit and re-enter chroot, but it's highly recommended
|
---|
| 59 | to ensure a properly working bash.
|
---|
[7e37742] | 60 | </para>
|
---|
| 61 |
|
---|
[ba3c4d3] | 62 | <para>
|
---|
[8a7a48f7] | 63 | Run the following commands to accomplish this:
|
---|
[ba3c4d3] | 64 | </para>
|
---|
[7e37742] | 65 |
|
---|
[3229c6b] | 66 | <para>
|
---|
| 67 | <screen>
|
---|
| 68 | <userinput>logout</userinput>
|
---|
| 69 | &c6-chrootcmd;
|
---|
| 70 | </screen>
|
---|
| 71 | </para>
|
---|
[7e37742] | 72 |
|
---|
[6370fa6] | 73 | </sect2>
|
---|
| 74 |
|
---|