Categories: Linux

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

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

类似这种报错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

王哥哥

View Comments

Share
Published by
王哥哥

Recent Posts

狗狗币最新挖矿教程

说明 如果你没有免费的电不建议…

1 周 ago

【国产软件】平替Veeam的容灾备份 云祺

最近在测试国产容灾备份软件,云…

3 周 ago

Veeam v12.3发布

下载链接: Veeam v12…

3 周 ago

江苏移动自建FTTR篇章9——HN8145XR挂K153与2.5G组网

 最近跑移动营业厅,知道了移动…

4 周 ago

异地组网新秀——节点小宝测试

有时候,我们想要搭建异地组网,…

1 月 ago