CentOS6.5升级自带glibc-2.12到glibc-2.15的示例分析

2023-04-09 07:02:00 centos6 升级 自带

CentOS6.5升级自带glibc-2.12到glibc-2.15的示例分析

1、升级前的准备

1.1 查看当前glibc版本

rpm -qa|grep glibc

glibc-2.12-1.166.el6.i686

glibc-devel-2.12-1.166.el6.i686

1.2 下载glibc-2.15

wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz

1.3 解压

tar -zxvf glibc-2.15.tar.gz

2、升级glibc

2.1 编译安装

cd glibc-2.15

mkdir build

cd build

../configure --prefix=/usr --disable-profile --enable-add-ons --with-tls --with-__thread

make && make install

2.2 修改链接库

ldconfig

3、查看版本

ldd --version

ldd (GNU libc) 2.15

Copyright (C) 2012 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by Roland McGrath and Ulrich Drepper.

4、问题和解决方法

4.1 如果出现以下错误

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

解决方法:

yum install glibc.i686

4.2 如果出现以下错误

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

解决方法:

yum install glibc.i686

相关文章