1、作業系統版本
[root@localhost ~]# cat /etc/redhat-release #CentOS release 6.9 (Final)
2、當前glibc版本
[root@localhost ~]# /lib64/libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al.
3、安裝glibc2.15
[root@localhost ~]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz [root@localhost ~]# tar zxf glibc-2.15.tar.gz [root@localhost ~]# ./glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin [root@localhost ~]# make [root@localhost ~]# make install PS:如果進入glibc原始碼目錄再執行./configure會報錯
4、檢視安裝之後的版本
[root@localhost ~]# /lib64/libc.so.6 GNU C Library stable release version 2.15, by Roland McGrath et al. [root@localhost ~]# strings /lib64/libc.so.6 | grep GLIBC GLIBC_2.2.5 GLIBC_2.2.6 GLIBC_2.3 GLIBC_2.3.2 GLIBC_2.3.3 GLIBC_2.3.4 GLIBC_2.4 GLIBC_2.5 GLIBC_2.6 GLIBC_2.7 GLIBC_2.8 GLIBC_2.9 GLIBC_2.10 GLIBC_2.11 GLIBC_2.12 GLIBC_2.13 GLIBC_2.14 GLIBC_2.15 GLIBC_PRIVATE