ldd cannot find ld-linux.so.2

Asked by Mike Wilson

Tried using ldd to figure out if a missing library might be causing a 32-bit application to fail to run under 64-bit Edgy. Instead, ldd dies with a message that it cannot find ld-linux.so.2:

/usr/bin/ldd: line 171: /lib/ld-linux.so.2: No such file or directory
ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)

This leaves ldd unusable. 8-(

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Luca Falavigna
Solved:
Last query:
Last reply:
Revision history for this message
Best Luca Falavigna (dktrkranz) said :
#1

Try with "sudo ln -s /lib/ld-2.4.so /lib/ld-linux.so.2".

Revision history for this message
Mike Wilson (wilsonmr) said :
#2

'Search for Files' confirms that the above-named file is not present.

Revision history for this message
Mike Wilson (wilsonmr) said :
#3

User confirmed that the request is solved.

Revision history for this message
Krash (gkrasovic) said :
#4

I had this problem on dapper about 5 minutes ago... a bit of APT searching revealed that I didn't have the 32 bit compat libraries installed....

Resolved the issue (and the "broken" executable that I was trying to ldd in the first place with....)

sudo apt-get install ia32-libs