Centos upgrade glibc (to version 2.17)
1. The previous glibc library version is 2.12 and must be upgraded to version 2.17.
:http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
You can select the desired version.
2. installation and deployment
[Root @ kafzook1 common] # tar-xf glibc-2.17.tar.gz [root @ kafzook1 common] # cd glibc-2.17 [root @ kafzook1 glibc-2.17] # mkdir build; cd build [root @ kafzook1 build] # .. /configure -- prefix =/usr -- disable-profile -- enable-add-ons -- with-headers =/usr/include -- with-binutils =/usr/bin [root @ kafzook1 build] # make-j 8 [root @ kafzook1 build] # make install [root @ kafzook1 common] # strings/lib64/libc. so.6 | grep GLIBC: the following result is displayed.
We can see that the glibc version after successful deployment is 2.17.
Summary:
During the above installation process, we may encounter the following problems:
Baidu once asked this question, saying that the variable is followed by a colon ":". Let's print this variable and check that there is indeed a colon. Others' blog address: glibc Problem Solution
Solution: Find the environment variable, remove the colon + $ LD_LIBRARY_PATH next to it, and click "source.
We can see that the colon is gone.
Then proceed with the installation steps.