error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such fill
Oliver-nana
解决缺少libstdc++.so.6库的原因及解决办法
error while loading shared
libraries: libstdc++.so.6: cannot open shared object file: No such file or
directory
1.1先加载所有安装包
yum repolist
1.2查看哪个安装包包含该库:
yum provides libstdc++.so.6
输出可以看到:
可以看到安装包libstdc+±4.8.5-39.el7.i686
1.3安装libstdc+±4.8.5-36.el7.i686:
yum -y install
libstdc+±4.8.5-28.el7.x86_64
1.4再升级安装包
yum update libstdc+±4.8.5-28.el7.x86_64 -y
1.5修复/lib/ld-linux.so.2: bad ELF interpreter:
No such file or directory问题
yum
install glibc.i686 -y
1.6修复error while loading shared libraries:
libz.so.1: cannot open shared object file: No such file or directory
yum
install zlib.i686 -y
1.7修复error while loading shared libraries:
libstdc++.so.6: cannot open shared object file: No such file or directory
1.7.1再次查找这个库存在于哪个安装包中
yum whatprovides libstdc++.so.6
输出:
可以看到包
libstdc+±4.8.5-36.el7.i686
1.7.2安装libstdc+±4.8.5-36.el7.i686
yum install libstdc+±4.8.5-36.el7.i686 -y
参考:
centos7.5 解决缺少libstdc++.so.6库的原因及解决办法
https://www.cnblogs.com/effortsing/p/10363921.html
文章知识点与官方知识档案匹配,可进一步学习相关知识
CS入门技能树首页概览26199 人正在系统学习中
原文链接:https://blog.csdn.net/zhangyingna667/article/details/107293917/