4

I am getting this error on CentOS:

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

I tried to solve this problem using following command.

yum -y install glibc.i686

But it didn't work. It says:

No package glibc.i686 available.

My CentOS version: 6.7

Could anyone help me? Thanks.

Will
  • 24,082
  • 14
  • 97
  • 108
John
  • 51
  • 1
  • 1
  • 3

1 Answers1

8

use the command

yum provides ld-linux.so.2

You may see something like this:

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

Then you can run:

yum install glibc-2.17-105.el7.i686 -y
Tbalz
  • 662
  • 1
  • 7
  • 24
  • 1
    This would be a better answer if you said something about what to do with the output of that. – Peter Cordes Feb 09 '16 at 04:12
  • 2
    It should be there now – Tbalz Feb 09 '16 at 05:02
  • This is a very useful command also yum groupinstall "Compatibility libraries" – Tbalz Feb 09 '16 at 19:22
  • The advice to use **yum provides** here is much more valuable than direct rpm links which usually follow similar questions. – hypers Jun 01 '22 at 14:59
  • yum provides ld-linux.so.2 Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile * base: mirror1.cl.netactuate.com * extras: mirror1.cl.netactuate.com * updates: mirror1.cl.netactuate.com No matches found – Paulo Pedroso Jan 25 '23 at 16:13