国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > 服务器 > libstdc++.so.6: cannot open shared object file: No such file or directory

libstdc++.so.6: cannot open shared object file: No such file or directory

来源:程序员人生   发布时间:2014-12-14 08:45:36 阅读次数:5518次
在网站上上运行
/usr/apktool/aapt d badging /temp/2014/12/02/17/547d812953368677.apk

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


1. 因而安装libstdc++
yum install libstdc++⑷.1.2⑸5.el5.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * rpmforge: ftp.riken.jp
 * updates: mirrors.aliyun.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package libstdc++⑷.1.2⑸5.el5.i386 available.
Nothing to do

2. 缺少yum源,再经过了,多种方法都不行。
yum whatprovides libstdc++.so.6
yum install libstdc++.so.6
yum list available | grep libstdc++

3. 最后在 http://rpmfind.net/linux/rpm2html/search.php?query=libgcc_s.so.1&submit=Search+...&system=centos&arch=
找到库 libstdc++.so.6
libstdc++⑷.1.2⑸5.el5.i386.rpm
可是安装  rpm -ivh libstdc++⑷.1.2⑸5.el5.i386.rpm,报错
[root@iZ2376acijuZ ~]# rpm -ivh libstdc++⑷.1.2⑸5.el5.i386.rpm

error: Failed dependencies:
    libgcc_s.so.1 is needed by libstdc++⑷.1.2⑸5.el5.i386
    libgcc_s.so.1(GCC_3.0) is needed by libstdc++⑷.1.2⑸5.el5.i386
    libgcc_s.so.1(GCC_3.3) is needed by libstdc++⑷.1.2⑸5.el5.i386
    libgcc_s.so.1(GCC_4.2.0) is needed by libstdc++⑷.1.2⑸5.el5.i386
    libgcc_s.so.1(GLIBC_2.0) is needed by libstdc++⑷.1.2⑸5.el5.i386
    
4. 因而再次在 http://rpmfind.net/linux/rpm2html/search.php?query=libgcc_s.so.1&submit=Search+...&system=centos&arch=
找到 libgcc⑷.1.2⑸5.el5.i386.rpm
安装  rpm -ivh libstdc++⑷.1.2⑸5.el5.i386.rpm ,然后在安装rpm -ivh libgcc⑷.1.2⑸5.el5.i386.rpm

all is done

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生