When you attempt to run a file (not a dead link) that exists in a directory and is executable to everyone, you get an error complaining it can’t run the file because of “No such file or directory”. Can this happen? Yes, it happened once to me a few while ago and again today.
It turned out I was trying to run a 32bit program on my 64bit Ubuntu. This can be easily found out by the file command. For example, if the runnable’s name is runme, then you can check the file details by
It will print out something like
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped