Home > IT Architecture, Kernel, Linux, Systems > resolved – /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

resolved – /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

April 1st, 2014

When I ran perl command today, I met problem below:

[root@test01 bin]# /usr/local/bin/perl5.8
-bash: /usr/local/bin/perl5.8: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Now let's check which package /lib/ld-linux.so.2 belongs to on a good linux box:

[root@test02 ~]# rpm -qf /lib/ld-linux.so.2
glibc-2.5-118.el5_10.2

So here's the resolution to the issue:

[root@test01 bin]# yum install -y glibc.x86_64 glibc.i686 glibc-devel.i686 glibc-devel.x86_64 glibc-headers.x86_64

Good Luck!


Categories: IT Architecture, Kernel, Linux, Systems Tags:
Comments are closed.