/lib/ld-linux.so.2:错误的ELF解释器:没有这样的文件或目录

时间:2012-12-25 11:40:59

标签: glibc yum

当我执行命令安装应用程序后出现以下错误:       /lib/ld-linux.so.2:错误的ELF解释器:没有这样的文件或目录

我不知道如何解决这个问题,找出我在网上搜索solotutions并找到以下解决方案的解决方案:

yum install glibc.i686 or yum install glibc.i386

但运气不好根本没用。它抛出了以下错误:

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package glibc.i686 available.
Error: Nothing to do

我再次试图解决这个问题并从网上获得一些解决方案;

Download glibc rpm packge for centos 6 and install them.

我下载了以下包装:

glibc-2.12-1.80.el6.i686.rpm
glibc-common-2.12-1.80.el6.i686.rpm
glibc-devel-2.12-1.80.el6.i686.rpm
glibc-headers-2.12-1.80.el6.i686.rpm
glibc-static-2.12-1.80.el6.i686.rpm
glibc-utils-2.12-1.80.el6.i686.rpm

尝试使用以下命令安装:

yum install glibc.i686
rpm -U glibc-2.12-1.80.el6.i686.rpm
rpm -ivh glibc-2.12-1.80.el6.i686.rpm

它们都没有奏效。得到以下消息:

[root@demo tmp_glibc]# rpm -ivh glibc-2.12-1.80.el6.i686.rpm
    error: Failed dependencies:
    glibc-common = 2.12-1.80.el6 is needed by glibc-2.12-1.80.el6.i686
    libfreebl3.so is needed by glibc-2.12-1.80.el6.i686
    libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.12-1.80.el6.i686

要解决依赖问题,试图安装“glibc-common-2.12-1.80.el6.i686.rpm”,但又运气不好并给出错误:

[root@demo tmp_glibc]# rpm -ivh glibc-common-2.12-1.80.el6.i686.rpm
error: Failed dependencies:
    glibc = 2.12-1.80.el6 is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6 is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.0) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.1) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.1.1) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.1.3) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.10) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.2) is needed by glibc-common-2.12-1.80.el6.i686
    libc.so.6(GLIBC_2.3) is needed by glibc-common-2.12-1.80.el6.i686
    libcap.so.2 is needed by glibc-common-2.12-1.80.el6.i686
    libdl.so.2 is needed by glibc-common-2.12-1.80.el6.i686
    libdl.so.2(GLIBC_2.0) is needed by glibc-common-2.12-1.80.el6.i686
    libdl.so.2(GLIBC_2.1) is needed by glibc-common-2.12-1.80.el6.i686

任何人都可以帮我弄清楚如何解决这个问题吗?

更多详情: 操作系统:centos 6.3 百胜安装包装清单:

[root@demo tmp_glibc]# yum list installed glibc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Installed Packages
glibc.x86_64   

7 个答案:

答案 0 :(得分:48)

yum install glibc.i686

安装此。

答案 1 :(得分:25)

您没有提到您尝试运行的命令是什么产生了错误消息。但是,底线问题是您尝试在64位(x86_64)系统上运行和/或安装32位(i686)软件包,这不是一个好主意。例如,如果您尝试在64位系统上运行32位版本的Perl,结果将类似于

  

perl:/lib/ld-linux.so.2:错误的ELF解释器:没有这样的文件或目录

如果您仍想使用rpm命令在系统上安装32位版本的glibc和glibc-common,那么您需要知道必须同时安装两个软件包并作为单个软件包安装命令因为它们是彼此的依赖关系。在您的情况下运行的命令将是:

  

rpm -Uvh glibc-2.12-1.80.el6.i686.rpm glibc-common-2.12-1.80.el6.i686.rpm

答案 2 :(得分:7)

Missing prerequisites. IBM has the solution below:

yum install gtk2.i686
yum install libXtst.i686

If you received the the missing libstdc++ message above, 
install the libstdc++ library: 
yum install compat-libstdc++

https://www-304.ibm.com/support/docview.wss?uid=swg21459143

答案 3 :(得分:2)

向我看 yum install glibc.i686 应该有用。除非彼得不是根。 他安装了64位glib,他正在安装一个32位封装,需要32位glib,即intel处理器的glib.i686。

答案 4 :(得分:1)

这些是为了让它在fedora 22上运行而必须运行的安装: -

  

glibc-2.21-7.fc22.i686

     

的alsa-LIB-1.0.29-1.fc22.i686

     

qt3-3.3.8b-64.fc22.i686

     

的libusb-1:0.1.5-5.fc22.i686

答案 5 :(得分:0)

我遇到了同样的问题,以下命令可以解决:

sudo yum install  glibc-common glibc  (mutual dependency)
sudo yum install  glibc.i686  (the missing version)

答案 6 :(得分:0)

如@borayeris所说,

  

yum install glibc.i686

但是,如果找不到 glibc.i686 libstdc ++ 软件包,请尝试-

  

sudo yum search glibc
  sudo yum search libstd

然后

  

sudo yum install {程序包}