Installation of Glibc
Before starting to install glibc, you must cd into the
glibc-&glibc-version; directory and unpack glibc-linuxthreads inside
the glibc-&glibc-version; directory, not in /usr/src as you normally
would do.
Install Glibc by running the following commands:
mknod -m 0666 /dev/null c 1 3 &&
touch /etc/ld.so.conf &&
cp -f malloc/Makefile \
malloc/Makefile.backup &&
sed 's%\$(PERL)%/usr/bin/perl%' \
malloc/Makefile > tmp~ &&
mv -f tmp~ malloc/Makefile &&
cp -f login/Makefile \
login/Makefile.backup &&
sed 's/root/0/' login/Makefile > tmp~ &&
mv -f tmp~ login/Makefile &&
mkdir ../glibc-build &&
cd ../glibc-build &&
../glibc-&glibc-version;/configure \
--prefix=/usr --enable-add-ons \
--libexecdir=/usr/bin &&
cp -f config.make config.make.backup &&
sed 's/cross-compiling = yes/cross-compiling = no/' \
config.make > tmp~ &&
mv -f tmp~ config.make &&
make &&
make install &&
make localedata/install-locales &&
exec /bin/bash
During the configure stage you will see the following warning:
configure: warning:
*** An auxiliary program is missing or too old;
*** some features will be disabled.
*** Check the INSTALL file for required versions.
This warning refers to the missing msgfmt program from the
gettext package, but it can safely be ignored in our case. The glibc
installation will not be affected.