0

my centOS version is centos-release-6-6.el6.centos.12.2.x86_64

I have executed the following commands to extract and install glibc-2.15

tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build 
../configure --prefix=/opt/glibc-2.14 
make -j4
make install

But when I check glib version with command yum list glibc, it shows:

Installed Packages glibc.i686 2.12-1.192.el6 @base glibc.x86_64 2.12-1.192.el6 @base

  • What are the commands you have executed and what are the outputs to them? – Zumo de Vidrio Jan 31 '17 at 8:41
  • cmds executed - <br/> tar zxvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure --prefix=/opt/glibc-2.14 make -j4 make install <br/> but glibc is still same version i.e. 2.12 – gautam Jan 31 '17 at 8:43
  • 1
    Is it glibc2.14 or glibc2.15? Do you receive any error message when compiling? Are you checking the version of glibc under /opt or perhaps are you taking the version from your glibc called in your path? – Zumo de Vidrio Jan 31 '17 at 8:49
  • It is glibc 2.15. No error while compiling. I am checking version by yum list glibc – gautam Jan 31 '17 at 8:51
  • 1
    Just edited your question with that relevant information. – Zumo de Vidrio Jan 31 '17 at 8:56
0

The version you get from yum list glibc is the glibc version found in your repos, not the one you have compiled manually.

If you want to make reference to the 2.15 version, you should check and use the glibc version from the folder in which you configured it when compiling.

0

'Yum list glibc' will always show the glibc version which are available in the centos 6 repository.

The steps you've followed implies that you've build your own version of glibc but it doesn't mean it will change the version on repo as well.

If you're looking for the usage of upgraded libraries, then you must either export it or feed the upgraded libraries to the symbolic link under /lib/ or /lib64/ which can be done in the following ways.

1.LD_LIBRARY_PATH=/opt/glibc-2.14 export LD_LIBRARY_PATH

It will stay exposed until your current session gets logged out.

  1. Replace the symbolic link ln -sf /lib/glibc.so.6 /opt/glibc-2.14/glibc-2.14.so

If any of your program stops working, then immediately execute below command.

ln -sf /lib/glibc.so.6 glibc-2.x.so

here x denotes your authentic version of glibc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.