/lib64/libc.so.6: version `GLIBC_2.32′ not found 错误解决

王哥哥 Linux 5,471 次浏览 1条评论

今天安装个软件报了这个鸡儿东西好烦,弄了半天,后面编译也问题

类似这种报错These critical programs are missing or too old: make compiler

 

升级make

wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz

tar xf make-4.3.tar.gz

cd make-4.3/

./configure

make

make install

make -v

/usr/local/bin/make -v

whereis make

cd /usr/bin/

mv make make.bak

ln -sv /usr/local/bin/make /usr/bin/make

make -v

 

安装gcc

yum -y install centos-release-scl

yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils

scl enable devtoolset-8 bash

echo “source /opt/rh/devtoolset-8/enable” >>/etc/profile

 

安装升级gdb

yum install -y gdb

wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.gz

tar -zxvf gdb-7.8.tar.gz

chown -R root.root gdb-7.8

cd gdb-7.8

mkdir build

cd build

../configure –prefix=/usr

make install

gdb -v

 

查看现在的glibc版本

strings /lib64/libc.so.6 | grep GLIBC

 

安装glibc 2.32

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

tar -zxvf glibc-2.32.tar.gz

cd glibc-2.32

mkdir build;

cd build

../configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin –disable-sanity-checks –disable-werror

make -j 8

make install

 

安装glibc 2.34 (我没成功上面的2.32成功的)

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

tar -zxvf glibc-2.34.tar.gz

cd glibc-2.34

mkdir build;

cd build

../configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin –disable-sanity-checks –disable-werror

make -j 8

make install

 

 

glibc升级失败处理方法 还原回原来的2.17

sln /usr/lib64/libc-2.17.so /lib64/libc.so.6

sln /usr/lib64/ld-2.17.so /usr/lib64/ld-linux-x86-64.so.2

sln /usr/lib64/libm-2.17.so /usr/lib64/libm.so.6

 

如果你重启了系统,起不来了,那么可以参考下面一篇

https://blog.csdn.net/m0_60356178/article/details/126075066

一条评论

  1. 王哥哥 2023年5月11日 21:07

    2.34我知道了 因为那是centos 9才支持的 所以会报错

发表回复

Go