This section covers installing glibc 2 as a test library. Anything you compile will be linked to your existing libraries unless you give some extra parameters to link to the new libraries. It appears that the paths are compiled into quite a few files, so you probably have to install the library from source.
On an i586@133 with 64 MB of RAM, it takes about 3 hours to compile with full libraries with add-ons. On a loaded i686@200, it takes about half an hour.
You need to extract the source from the archives so you can compile it. The best way to do this is:
 tar xzf glibc-2.0.6.tar.gz
 cd glibc-2.0.6
 tar xzf ../glibc-linuxthreads-2.0.6.tar.gz
 tar xzf ../glibc-crypt-2.0.6.tar.gz
 tar xzf ../glibc-localedata-2.0.6.tar.gz
 
In the glibc-2.0.6 directory, create a directory named compile, and cd into it. All work will be done in this directory, which will simplify cleaning up. (The developers have not been very concerned with getting 'make clean' perfect yet.)
 mkdir compile
 cd compile
 
../configure.  To use the add-on packages, you need to specify
them with --enable-add-ons, such as --enable-add-ons=linuxthreads,crypt,localedata.
You also need to choose a destination directory to install to.
/usr/i486-linuxglibc2 is a good choice.  The configure line for this would be:
 ../configure --enable-add-ons=linuxthreads,crypt,localedata --prefix=/usr/i486-linuxglibc2
 
To compile and verify, run:
 make
 make check
 
compile/ directory):
 make install
 
ld.so to /lib/ld-linux.so.2:
 ln -s /usr/i486-linuxglibc2/lib/ld-linux.so.2 /lib/ld-linux.so.2
 
/lib will ease upgrading to glibc as
your primary C library when the stable version is released./etc/ld.so.conf.  You need to add path to the lib
directory the new libraries reside in at the end of the file, which will
be <prefix>/lib, such as /usr/i486-linuxglibc2/lib
for the choice above.  After you have modified /etc/ld.so.conf, run
 ldconfig -v
 
The last step of installation is updating /usr/lib/gcc-lib so gcc
knows how to use the new libraries.  First you need to duplicate the existing
configuration.  To find out which configuration is current, use the -v
option of gcc:
 % gcc -v
 Reading specs from /usr/lib/gcc-lib/i486-unknown-linux/2.7.2.2/specs
 gcc version 2.7.2.2
 
/usr/lib/gcc-lib/<system> to
the new test system directory:
 cd /usr/lib/gcc-lib/
 cp -r i486-unknown-linux i486-linuxglibc2
 
 cd /usr/lib/gcc-lib/i486-linuxglibc2/2.7.2.2
 
specs found in this directory.  In this file,
change /lib/ld-linux.so.1 to /lib/ld-linux.so.2.  You also
need to remove all expressions %{...:-lgmon} in the file, since
glibc does not use the gmon library for profiling.  A sample specs file can
be found in the 
Sample specs file section.
You need create links in your new include directory to other include directories:
 cd /usr/i486-linuxglibc2/include
 ln -s /usr/src/linux/include/linux
 ln -s /usr/src/linux/include/asm
 ln -s /usr/X11R6/include/X11
 
/usr/include.  (Some libraries may need to be recompiled
with glibc2 in order to work with it.  In these cases, just compile and
install the package to /usr/i486-linuxglibc2.)
To test the installation, create the following program in a file glibc.c:
 #include <stdio.h>
 main()
 {
     printf("hello world!\n");
 }
 
 % gcc -b i486-linuxglibc2 -nostdinc -I/usr/i486-linuxglibc2/include -I/usr/lib/gcc-lib/i486-linuxglibc2/2.7.2.2/include glibc.c -o glibc
 
 % ldd glibc
 libc.so.6 => /usr/i486-linuxglibc2/lib/libc-2.0.6.so (0x4000d000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)