Centos 6 requires GLIBC 2.12 however a lot of new programs you would want to compile may need a newer glibc. You can't remove the old glibc since the whole OS is based on it but you can install the updated glibc alongside it and do an export pointing to your updated GLIBC.
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
The export should be done in ~/.bashrc or /etc/profile to make it permanent otherwise programs will have unpredictable results. If you are calling a remote/cron script that needs this GLIBC you should probably do the export in the script itself to be sure.
centos, update, glibc, pluscentos, requires, programs, compile, newer, os, install, updated, alongside, export, mkdir, glibc_install, wget, http, ftp, gnu, org, tar, gz, zxvf, configure, prefix, opt, sudo, ld_library_path, lib, bashrc, etc, unpredictable, cron,