error while loading shared libraries: libstdc++.so.5解决办法

评论11,622

最近在安装conse软件的时候 如果出现
[code lang="shell"]
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[/code]

我的系统是64bit的 centos 5.5
运行下面的命令和方法解决
[code lang="shell"]
#使用wget下载compat-libstdc++-33-3.2.3-61.x86_64.rpm,也可本地下载再上传到服务器
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/compat-libstdc++-33-3.2.3-61.x86_64.rpm ./
#安装
rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm
[/code]

对于其他版本的linux需要下载相对应的 compat-libstdc ,然后再安装,以上compat-libstdc 适用于64位的centos 5

发表评论

匿名网友