libc.so.6 libstdc++.so.6 GLIBC_2.28 下载

这篇博客介绍了如何在Linux环境中将GLIBC从2.28升级到2.35,包括升级GCC和make的过程。通过下载安装glibc源码,配置并编译,然后解决在升级过程中遇到的错误,如gcc和make版本过旧的问题。最终成功升级后,创建新的软链接以替换旧的libc.so.6。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

wget http://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
tar xf glibc-2.35.tar.gz
cd glibc-2.35/ && mkdir build && cd build
…/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

可能出现的错误
configure: error:
*** These critical programs are missing or too old: make bison compiler
*** Check the INSTALL file for required versions.
解决办法:升级gcc与make

升级GCC(默认为4 升级为8)

yum install -y centos-release-scl
yum install -y devtoolset-8-gcc*
mv /usr/bin/gcc /usr/bin/gcc-4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/gcc /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g+±4.8.5
ln -s /opt/rh/devtoolset-8/root/bin/g++ /usr/bin/g++

升级 make(默认为3 升级为4)

wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz
tar -xzvf make-4.3.tar.gz && cd make-4.3/
./configure --prefix=/usr/local/make
make && make

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值