I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is:
bash: ./shank-linux-120720110-1-bin: No such file or directory
|
I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is:
|
|||||||||||||||||||||
|
|
You're probably trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed. There are three cases where you can get the message “No such file or directory”:
The error message in this last case is admittedly confusing. What it's telling you is that a key component of the runtime environment necessary to run the program is missing. Unfortunately, the channel through which the error is reported only has room for the error code and not for this extra information that it's really the runtime environment that's to blame. If you want the technical version of this explanation, read Getting “Not found” message when running a 32-bit binary on a 64-bit system. The In Ubuntu up to 11.04, to run a 32-bit binary on a 64-bit installation, you need to install the Since 11.10 (oneiric) introduced multiarch support, you can still install |
|||||||||||||||||||||
|
64 bit Ubuntu Multiarch systemsFollow this answer only if the output of
To run 32bit executable file in a 64 bit multi-arch Ubuntu system, you have to add
|
|||||||||||||||||
|
|
By installing the deb for 32 bit I realized I was missing some libraries (in addition to ia32-libs and libc6). I first solved this problem by giving this command:
Then I got another error:
Obviously, these libraries were properly installed. Without going into details I had to link the libraries by hand. I realized then that could also an easier solution through Synaptic install the following packages:
After that the next problem was the black screen while playing, which I solved by replacing the executable in /Shank/bin with this: http://treefort.icculus.org/smb/smb-linux-mesa-hotfix-test.tar.bz2. I hope it will be useful to someone. If you need more help or more details please feel free to contact me. |
||||
|
|
|
Here's a transcript showing a bit more about the nature of the problem, and how to fix it as of Ubuntu 16.04. Notice that even though
Once you install libc6:i386, things start improving...
To complete the job, you may need to identify and install additional libraries one at a time...
I don't know if there is a systematic way of identifying the correct libraries to install. There is a bit of guesswork mapping the error messages to package names (tab completion helps). |
|||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?