iis服务器助手广告
返回顶部
首页 > 资讯 > 服务器 >解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by
  • 841
分享到

解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by

linux运维服务器 2023-08-20 16:08:43 841人浏览 独家记忆
摘要

解决方案:升级glibc到2.28版本 wget https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xztar -xf glibc-2.28.tar.xz -C /usr/local/c

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

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

来源地址:https://blog.csdn.net/LJL_1003/article/details/127968993

--结束END--

本文标题: 解决/lib64/libc.so.6: version `GLIBC_2.28‘ not found (required by

本文链接: https://www.lsjlt.com/news/376524.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作