Ubuntu: No such file or directory

Ran into a strange Ubuntu issue today. Downloaded an executable, but when trying to run it i got the error message:

bash: ./premake4: No such file or directory

Tried changing permissions and moving it to another folder to no avail before finally finding an answer on ubuntuforums.org

The cause of this bizare error is that I am running a 64-bit operating system and the binary I was trying to execute is 32-bit. The system looks for a 32-bit dynamic loader and cannot find it. So, bash correctly reports that the file cannot be found.

If you install the ia32-libs package, the problem will be corrected.

I should also point out that it is not possible for the problem to be related to setting the binary as executable. If any of you who proposed that solution have ever tried executing something for which you didn’t have executable permission, you would get a permission denied error NOT “no such file.”

Original post

Since the system obviously notices that it’s a 32bit application and fails to find a loader why would it not output this information? A really horrid error message I must say… 

Realtime Water: Realistic real-time wave simulation and propagation in very large water scenes

Thought it was time to start using this blog for something.. :)

Profanity is the one language all programmers know best.
— Unknown