On Sat, Dec 24, 2016 at 09:39:30PM +0800, 積丹尼 Dan Jacobson wrote: > Please give a more correct message, like 'incompatible binary version'. > Returning a not found error to shells is just plain misleading. > > $ set who who2 > $ for i in 'ls -l ' 'file ' './'; do $i$1; $i$2; done > -rwxr-xr-x 1 jidanni jidanni 51092 12-09 22:08 who > -rwxr-xr-x 1 jidanni jidanni 52168 12-09 22:08 who2 > who: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically > linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, > BuildID[sha1]=91f94a82b58bc7a63525c4ff35e43f9dbbe29caa, stripped > who2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically > linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, > BuildID[sha1]=2d07a0c30c834741b64bda8289fa557fa1e1a876, stripped > bash: ./who: No such file or directory > jidanni pts/0 2016-12-24 18:02 (:0) > $ uname -r > 4.8.0-2-amd64 > $ ./wwww #same messages as when something that really isn't there: > bash: ./wwww: No such file or directory > $ ./who > dash: 2: ./who: not found
Does /lib/ld-linux.so.2 exist on your system? If not, the error message is correct. The kernel just knows that the interpreter given in the executable does not exist, it cannot give a more meaningful error message because lack of knowledge. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421