码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2014-12-03 17:11:09      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:centos   libstdc++   

在网站上上运行
/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++-4.1.2-55.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++-4.1.2-55.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++-4.1.2-55.el5.i386.rpm
可是安装  rpm -ivh libstdc++-4.1.2-55.el5.i386.rpm,报错
[root@iZ2376acijuZ ~]# rpm -ivh libstdc++-4.1.2-55.el5.i386.rpm

error: Failed dependencies:
    libgcc_s.so.1 is needed by libstdc++-4.1.2-55.el5.i386
    libgcc_s.so.1(GCC_3.0) is needed by libstdc++-4.1.2-55.el5.i386
    libgcc_s.so.1(GCC_3.3) is needed by libstdc++-4.1.2-55.el5.i386
    libgcc_s.so.1(GCC_4.2.0) is needed by libstdc++-4.1.2-55.el5.i386
    libgcc_s.so.1(GLIBC_2.0) is needed by libstdc++-4.1.2-55.el5.i386
    
4. bubuko.com,布布扣于是再次在 http://rpmfind.net/linux/rpm2html/search.php?query=libgcc_s.so.1&submit=Search+...&system=centos&arch=
找到 libgcc-4.1.2-55.el5.i386.rpm
安装  rpm -ivh libstdc++-4.1.2-55.el5.i386.rpm ,然后在安装rpm -ivh libgcc-4.1.2-55.el5.i386.rpm

all is done

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

标签:centos   libstdc++   

原文地址:http://blog.csdn.net/llnara/article/details/41699301

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!