I was given a "binary" file on linux and a seperate file for windows for a particular task. The programs is an exe on windows. A linux version of the file has the same function on linux as it had windows, too.
However, I've failed to be able to execute this. I tried (on the terminal) to execute it by just the file name, ./[filename]
, and even tried chmod +x [filename]
and then tried the second way.
For everything... I get the result: "Command not found". (The file is definitely there, by the way).
What am I supposed to do? The file command on it yields:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=e805f746e65c09cc8b0c037d8a8c27ee0a6a051c
/lib/ld-linux.so.2
on your system? This will happen if you try to run a 32 bit executable on a 64bit system or vice versa without the required libraries installed, out if you run an executable compiled for a different distributionfile
tells you, you very specifically need/lib/ld-linux.so.2
. It appears that you are trying to run an i386 executable on an amd64 system. On Ubuntu/Debian systems, you couldapt-get install libc6-i386
to install the support libraries to run i386 executables.ldd
rather thanfile
to show more informative details about the libraries required by the executable (possibly more than just libc6).