glibc2.12升级至2.15

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

猜你喜欢

转载自www.cnblogs.com/ttstone/p/9182170.html