Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Linux and Unix Linux and Unix
Search Search
Search for:
Tech Support Guy > > >

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


(!)

Boylett's Avatar
Boylett Boylett is offline
Computer Specs
Member with 55 posts.
THREAD STARTER
 
Join Date: Dec 2006
Experience: Intermediate
09-Dec-2009, 07:14 PM #1
lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
I get this error: "lib/ld-linux.so.2: bad ELF interpreter: No such file or directory" when I try to run a 32 bit binary on a 32 bit system. Nothing in google helps (most of them are trying to run 32 bit on 64 bit or vice versa).

I have installed all glibc packages.

How can it be fixed?

Thanks.
lotuseclat79's Avatar
Member with 20,583 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
10-Dec-2009, 07:43 AM #2
Hi Boylett,

We need a bit more context for your problem. What software (i.e. the 32-bit binary) were you trying to run on which Linux distribution?

What is the result of the following command on your linux:
$ ls -lt /lib/linux*

On my linux (Ubuntu 9.10) aka Karmic Koala, the resuilt is the following:
ubuntu@ubuntu:~/Desktop$ ls -lt /lib/ld-linux*
lrwxrwxrwx 1 root root 12 2009-10-28 16:55 /lib/ld-linux.so.2 -> ld-2.10.1.so

If you have the file, ld-2.10.1.so in /lib, and there is no file /lib/ld-linux.so.2, then you can create a symbolic link to the existing file that might help correct the problem as follows:
$ubuntu@ubuntu:~$ sudo -i
# cd /lib
# ln -s ld-2.10.1.so ld-linux.so.2
# exit

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Boylett's Avatar
Boylett Boylett is offline
Computer Specs
Member with 55 posts.
THREAD STARTER
 
Join Date: Dec 2006
Experience: Intermediate
10-Dec-2009, 11:43 AM #3
I'm running CentOS 5, and I'm trying to run an SA-MP server (x86).

ls -lt /lib/linux*
ls: /lib/linux*: No such file or directory

ls -lt /lib/ | grep linux
lrwxrwxrwx 1 root root 9 Dec 10 17:31 ld-linux.so.2 -> ld-2.5.so

ls -al /lib | grep ld-2.5.so
-rwxr-xr-x 1 root root 124432 Sep 3 02:56 ld-2.5.so
lrwxrwxrwx 1 root root 9 Dec 10 17:31 ld-linux.so.2 -> ld-2.5.so
lotuseclat79's Avatar
Member with 20,583 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
11-Dec-2009, 08:40 AM #4
What version of CentOS do you have, i.e. run the following command:
$ cat /etc/lsb-release

Since your post indicates that you have ld-2.5.so, you may need to upgrade the package libc6 or libc6-i686 or libc6-dev which should get you a more recent version of the ld-2.xx.so module.

Either that or upgrade your release of CentOS to the latest stable release which is 5.4.

-- Tom
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑