Linux upgrades Glibc and linuxglibc
I. Introduction
Glibc is the libc library released by gnu, that is, the c Runtime Library. Glibc is the most underlying api in linux, and almost any other Runtime Library depends on glibc. Glibc not only encapsulates the system services provided by the linux operating system, but also provides implementation of many other necessary functional services...
This article introduces the Glibc upgrade method, reference: http://www.cppblog.com/prayer/archive/2009/07/22/90836.html
Ii. Upgrade
The procedure is as follows:
wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gzwget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gztar -xvf glibc-2.15.tar.gztar -xvf glibc-ports-2.15.tar.gzmv glibc-ports-2.15 glibc-2.15/portsmkdir glibc-build-2.15 cd glibc-build-2.15../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/binmake & make install
After make is successful, a new libc is compiled under the build directory. so.6 (/glibc-build-2.15/libc. so.6, we will find that this is actually a soft connection, the actual lib file is libc. so
cd glibc-build-2.15
ll libc.so.6
View the library file. You can see that the old library file of version 2.12 is still in progress, the library file of version 2.15 is added, and all soft-link files point to version 2.15.
ll /lib64/libc*
Check the version supported by glibc.
strings libc.so | grep GLIBC