| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | <sect2><title>Installation of Glibc</title><para>Before starting to install glibc, you must cd into theglibc-&glibc-version; directory and unpack glibc-linuxthreads insidethe glibc-&glibc-version; directory, not in /usr/src as you normallywould do.</para><para>Install Glibc by running the following commands:</para><para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput><userinput>touch /etc/ld.so.conf &&</userinput><userinput>cp -f malloc/Makefile \</userinput><userinput>   malloc/Makefile.backup &&</userinput><userinput>sed 's%\$(PERL)%/usr/bin/perl%' \</userinput><userinput>   malloc/Makefile > tmp~ &&</userinput><userinput>mv -f tmp~ malloc/Makefile &&</userinput><userinput>cp -f login/Makefile \</userinput><userinput>   login/Makefile.backup &&</userinput><userinput>sed 's/root/0/' login/Makefile > tmp~ &&</userinput><userinput>mv -f tmp~ login/Makefile &&</userinput><userinput>mkdir ../glibc-build &&</userinput><userinput>cd ../glibc-build &&</userinput><userinput>../glibc-&glibc-version;/configure \</userinput><userinput>   --prefix=/usr --enable-add-ons \</userinput><userinput>   --libexecdir=/usr/bin &&</userinput><userinput>cp -f config.make config.make.backup &&</userinput><userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput><userinput>   config.make > config.make~ &&</userinput><userinput>mv -f config.make~ config.make &&</userinput><userinput>make &&</userinput><userinput>make install &&</userinput><userinput>make localedata/install-locales &&</userinput><userinput>logout</userinput>&c6-chrootcmd;</screen></para><para>During the configure stage you will see the following warning:</para><blockquote><screen>configure: warning:*** An auxiliary program is missing or too old;*** some features will be disabled.*** Check the INSTALL file for required versions.</screen></blockquote><para> This warning refers to the missing msgfmt program from thegettext package, but it can safely be ignored in our case.  The glibc installation will not be affected.</para><para>The last two commands make you exit and re-enter the chroot'ed environment. This is done to get rid of the "I haveno name!" message in the command prompt, which was caused by bash'sinability to resolve a userid to a username (which in turn was caused bythe missing Glibc installation).</para></sect2>
 |