当我执行安装应用程序的命令时,出现以下错误
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
我不知道如何解决这个问题。我在网上找到了如下解决方案:
yum install glibc.i686
或者
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
我再次尝试解决这个问题并从网上得到了一些解决方案
下载适用于 centos 6 的 glibc rpm packge 并安装它们。
我下载了以下软件包:
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@s7 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@s7 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 Yum 安装的软件包列表:
[root@s7 tmp_glibc]# yum list installed glibc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Installed Packages
glibc.x86_64
答案1
首先尝试搜索包:
百胜搜索 glibc
这将提供所有包含 glibc 的软件包。其次,您安装的哪个应用程序会出现错误?
您还可以执行以下操作
百胜提供了什么/lib/ld-linux.so.2
这将告诉您哪个软件包包含所需的文件,以便您可以直接发出 yum install
答案2
只是在 64 位 centos 6 上的 android sdk 上遇到了同样的问题对我来说,它是这样工作的:
wget ftp://fr2.rpmfind.net/linux/centos/6.3/os/i386/Packages/glibc-common-2.12-1.80.el6.i686.rpm
wget ftp://fr2.rpmfind.net/linux/centos/6.3/os/i386/Packages/glibc-2.12-1.80.el6.i686.rpm
yum install nss-softokn-freebl-3.12.9-11.el6.i686
rpm -Uhv glibc-2.12-1.80.el6.i686.rpm glibc-common-2.12-1.80.el6.i686.rpm
另外为了使 adnroid sdk 工作,我必须安装:
yum install zlib-1.2.3-27.el6.i686 libstdc++-4.4.6-4.el6.i686