%general-entities; ]> Glibc-&glibc-version; Glibc Installation of Glibc Modify the ldd rewrite script to remove lib64 and libx32 from RTLDLIST. sed -i '/RTLDLIST/d' sysdeps/unix/sysv/linux/*/ldd-rewrite.sed Configure Glibc to install its libraries into /lib: echo "libc_cv_slibdir=/lib" >> config.cache ../glibc-&glibc-version;/configure --prefix=/usr \ --disable-profile --enable-kernel=&glibc-kernel-version; \ --libexecdir=/usr/lib/glibc --libdir=/usr/lib \ --enable-obsolete-rpc --cache-file=config.cache The install will finish by checking that everything is correctly installed. Unfortunately, it will test for a multilib installation. On x86_64 Pure64 this means it will try to test the non-existent 32-bit loader which has a different name from the 64-bit loader (unlike on other 64-bit architectures). We fool it by creating a symlink to the real loader. ln -sv &glibc-ld-name; /lib/ld-linux.so.2 Now we can remove this symlink: rm -v /lib/ld-linux.so.2 Configuring The Dynamic Loader /etc/ld.so.conf By default, the dynamic loader (/lib/ld-linux-x86-64.so.2) searches through /lib and /usr/lib for dynamic libraries that are needed by programs as they are run. However, if there are libraries in directories other than /lib and /usr/lib, these need to be added to the /etc/ld.so.conf file in order for the dynamic loader to find them. Two directories that are commonly known to contain additional libraries are /usr/local/lib and /opt/lib, so add those directories to the dynamic loader's search path.