[i]转载[/i][url]http://www.2cto.com/os/201305/207590.html[/url]

[CentOS]安装软件:/lib/ld-linux.so.2: bad ELF interpreter解决

环境:

[orangle@localhost Downloads]$ uname -m&&uname -r

x86_64

2.6.32-220.el6.x86_64

[orangle@localhost Downloads]$ cat /etc/redhat-release

CentOS release 6.2 (Final)

****************************************************************************************

使用的时候出现一个错误

bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

是因为64位系统中安装了32位程序

解决方法:yum install glibc.i686

重新安装以后还有如下类系错误 再继续安装包

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

再执行命令 yum install libstdc++.so.6

[b]转载[/b] [url]http://www.linuxidc.com/Linux/2013-04/82494.htm[/url]

安装libstdc++.so.6时有时候还会缺少依赖,如下

当在CentOS 6.2下执行某些命令时,有缺少共享库的报错:

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

解决办法:

1、执行命令: yum whatprovides libstdc++.so.6, 然后会提示哪个安装包有这个库文件如下:

# yum whatprovides libstdc++.so.6

Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify,

: versionlock

Loading support for CentOS kernel ABI

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* centosplus: centos.ustc.edu.cn

* contrib: centos.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: centos.ustc.edu.cn

libstdc++-4.4.7-3.el6.i686 : GNU Standard C++ Library

Repo : base

Matched from:

Other : libstdc++.so.6

2、然后执行:yum install libstdc++-4.4.7-3.el6.i686

[b]转载[/b] [url]http://www.liumin.name/20100608/centos-5-yum-install-problem/[/url]

centos安装新软件时会出现软件冲突问题

解决方法如下:

yum clean all

rpm –rebuilddb

yum update


版权声明:本文为zhw_2009原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/zhw_2009/article/details/84459426