No such file or directory

When you received the message "No such file or directory", then this article may help.

Case: foreign binaries
When you download a binary, probably a proprietary one, built for Fedora or Debian, you may encounter this message. Suppose you see it, say in the error log, like this:



But that file,  surely exists! Don't panic, probably you can fix it. "Less" is your friend:

$ less ELF Header: Magic:  7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class:                            ELF64 Data:                             2's complement, little endian ...     [Requesting program interpreter: /lib64/ld-lsb-x86-64.so.3] ...

(If you're not using gentoo, do  instead.)

See the line in the brackets. It tells what's wrong. The workaroud is:

The problem is that the executable expects a lacking dynamic linker, or more specifically, the binary is built for LSB, or Linux Standard Base platforms. See also ld-linux.so.

Is it always safe and sound? I don't think so, but you may be able to survive for a while.