%general-entities; ]> Glibc-&glibc-version; Glibc <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Glibc The linuxthreads tarball contains the man pages for the threading libraries installed by glibc. Unpack the tarball from within the glibc source directory: tar xjvf ../glibc-linuxthreads-&glibc-version;.tar.bz2 Create a build directory: mkdir ../glibc-build cd ../glibc-build Now prepare Glibc for compilation: ../glibc-&glibc-version;/configure --prefix=/usr \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.0 --without-cvs \ --libexecdir=/usr/lib/glibc Compile the package: make Test the results: make check The Glibc test suite is highly dependent on certain functions of your host system. See testing for explanations. Fix an annoying little warning with: touch /etc/ld.so.conf And install the package: make install To install the Glibc locales, use the following command: make localedata/install-locales An alternative to running the previous command is to install only those locales which you need or want. The following instructions, instead of the install-locales target above, will install the minimum set of locales necessary for the tests to run successfully: mkdir -p /usr/lib/locale localedef -i de_DE -f ISO-8859-1 de_DE localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro localedef -i en_HK -f ISO-8859-1 en_HK localedef -i en_PH -f ISO-8859-1 en_PH localedef -i en_US -f ISO-8859-1 en_US localedef -i es_MX -f ISO-8859-1 es_MX localedef -i fa_IR -f UTF-8 fa_IR localedef -i fr_FR -f ISO-8859-1 fr_FR localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro localedef -i it_IT -f ISO-8859-1 it_IT localedef -i ja_JP -f EUC-JP ja_JP Build the linuxthreads man pages: make -C ../glibc-&glibc-version;/linuxthreads/man And install these pages: make -C ../glibc-&glibc-version;/linuxthreads/man install Configuring Glibc Create a new file /etc/nsswitch.conf by running the following: cat > /etc/nsswitch.conf << "EOF" # Begin /etc/nsswitch.conf passwd: files group: files shadow: files hosts: files dns networks: files protocols: files services: files ethers: files rpc: files # End /etc/nsswitch.conf EOF To find out what time zone you're in, run the following script: tzselect Then create the /etc/localtime file by running: cp --remove-destination /usr/share/zoneinfo/[xxx] \ /etc/localtime Configuring Dynamic Loader Create a new file /etc/ld.so.conf by running the following: cat > /etc/ld.so.conf << "EOF" # Begin /etc/ld.so.conf /usr/local/lib /opt/lib # End /etc/ld.so.conf EOF Contents of Glibc See testing