解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by
创始人
2025-01-17 13:32:39
0

解决方案:升级glibc到2.28版本

wget  https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz  tar -xf glibc-2.28.tar.xz -C /usr/local/  cd /usr/local/glibc-2.28/  mkdir build  cd build/  ../configure --prefix=/usr/local/glibc-2.28 

运行到…/configure --prefix=/usr/local/glibc-2.28时报错

报错1:

configure: error: in `/root/test/glibc-2.28/build’:
configure: error: no acceptable C compiler found in $PATH

yum install gcc -y 

报错2:

These critical programs are missing or too old: make
Check the INSTALL file for required versions.
解决方案: make太过老旧,参照下文升级make

报错3:
These critical programs are missing or too old: compiler
Check the INSTALL file for required versions.
解决方案:gcc版本太旧,参照下文升级gcc

centos 升级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  ###yum安装完,原来的gcc不覆盖,需要执行enable脚本更新环境变量  source /opt/rh/devtoolset-8/enable  ###想保持覆盖,可将其写入~/.bashrc或/etc/profile echo "source /opt/rh/devtoolset-8/enable" >>/etc/profile  ###查看gcc版本 gcc -v 
升级make
wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz  tar -xzvf make-4.2.tar.gz  cd make-4.2  sudo ./configure  sudo make  sudo make install  sudo rm -rf /usr/bin/make  sudo cp ./make /usr/bin/  make -v 
升级glibc-2.28
wget  https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz  tar -xf glibc-2.28.tar.xz -C /usr/local  cd /usr/local/glibc-2.28/  mkdir build  cd build/  yum install -y bison  sudo ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin  make  //make 运行时间较长,可能会有半小时  ###如make没有运行成功,解决error后需要先运行make clean,清除之前make的内容,才能再次执行make make clean  make  make install 

通过strings /lib64/libc.so.6 |grep GLIBC查询是否存在glibc-2.28版本

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

centos /lib64/libc.so.6: version ‘GLIBC_2.28’ not found (required by

相关内容

热门资讯

透视透视!wpk作弊,(AAP... 透视透视!wpk作弊,(AAPOker)都是是真的有挂,细节方法(有挂技巧);1、全新机制【AAPO...
分享一款“手机微乐小程序游戏破... 分享一款“手机微乐小程序游戏破解器”讲解开挂作弊辅助下载(本然真的是有挂);手机微乐小程序游戏破解器...
玩家必备教程!衢州都莱软件辅助... 玩家必备教程!衢州都莱软件辅助器,人皇辅助软件下载,2025版教程(了解有挂),衢州都莱软件辅助器是...
最新技巧!werplan透视挂... 最新技巧!werplan透视挂,关于开挂辅助透视器-确实真的有挂;werplan透视挂是一种具有地方...
透视工具!aapoker辅助器... 透视工具!aapoker辅助器是真的,(AApoker透视软件)从前是真的有挂,2025新版教程(有...
六分钟了解“摸一把麻将辅助”解... 六分钟了解“摸一把麻将辅助”解密开挂作弊辅助插件(原生存在有挂);摸一把麻将辅助最新版本免费下载安装...
三分钟了解!中指余干六副里,新... 您好:新上游大厅修改器这款游戏可以开挂的,确实是有挂的,很多玩家在这款游戏中打牌都会发现很多用户的牌...
透视透视!wepokerh5破... 透视透视!wepokerh5破解,(WePoKer价格)固有真的是有挂,必备教程(有挂教学);透视透...
最新技巧!we poker辅助... 最新技巧!we poker辅助器,解密开挂辅助透视挂-固有是有挂;最新技巧!we poker辅助器,...
一秒答解“wepoker辅助”... 一秒答解“wepoker辅助”详细开挂作弊辅助app(果然有挂);1、不需要AI权限,帮助你快速的进...