| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | <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 > tmp~ &&</userinput><userinput>mv -f tmp~ config.make &&</userinput><userinput>make &&</userinput><userinput>make install &&</userinput><userinput>make localedata/install-locales &&</userinput><userinput>exec /bin/bash --login</userinput></screen></para><para>An alternative to running <userinput>makelocaledate/install-locales</userinput> is to only install those localeswhich you need or want.  This can be achieved using the localedefcommand.  Information on this can be found in the INSTALLfile in the glibc-&glibc-version; tree.</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></sect2>
 |