【问题标题】:CentOS Error: /lib/ld-linux.so.2: bad ELF interpreter: No such fileCentOS 错误:/lib/ld-linux.so.2:错误的 ELF 解释器:没有这样的文件
【发布时间】:2016-04-06 23:56:59
【问题描述】:

我在 CentOS 上收到此错误:

/lib/ld-linux.so.2: bad ELF interpreter: No such file 

我尝试使用以下命令解决此问题。

yum -y install glibc.i686

但它没有用。它说:

没有可用的包 glibc.i686。

My CentOS version: 6.7

谁能帮帮我?谢谢。

【问题讨论】:

    标签: linux centos centos6


    【解决方案1】:

    使用命令

    yum provides ld-linux.so.2
    

    你可能会看到这样的东西:

    yum provides ld-linux.so.2
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.symnds.com
     * epel: mirror.symnds.com
     * extras: mirror.solarvps.com
     * rpmforge: mirror.us.leaseweb.net
     * updates: mirror.symnds.com
    glibc-2.17-105.el7.i686 : The GNU libc libraries
    Repo        : base
    Matched from:
    Provides    : ld-linux.so.2
    
    
    
    glibc-2.17-106.el7_2.1.i686 : The GNU libc libraries
    Repo        : updates
    Matched from:
    Provides    : ld-linux.so.2
    

    然后就可以运行了:

    yum install glibc-2.17-105.el7.i686 -y
    

    【讨论】:

    • 如果你能说出如何处理它的输出,这将是一个更好的答案。
    • 它现在应该在那里
    • 这是一个非常有用的命令,也是 yum groupinstall "Compatibility libraries"
    猜你喜欢
    • 2012-12-11
    • 2018-09-16
    • 2014-11-14
    • 2017-07-10
    • 2021-10-09
    • 1970-01-01
    • 1970-01-01
    • 2017-08-15
    相关资源
    最近更新 更多