Re: Problem while starting binary...-No such file or directory

Ricardo Galli Granada (gallir@atlas-iap.es)
Wed, 17 Feb 1999 13:12:24 +0100 (MET)


> ldd doesn't seem to work. It seems that the exec-call can't find the
> file. And ldd doesn't work, and if i remember right it is because it
> executes a binary with 0 command line parameters.

You are right, it's the exec sys call, try with the static linked ls that
normally comes with a ftpd, you will get same error:

star:/home/ftp/bin # file ls
ls: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked,
stripped
# is not dynamically linked....

star:/home/ftp/bin # ./ls
bash: ./ls: No such file or directory
star:/root # ldd /home/ftp/bin/ls
ldd: can't execute /home/ftp/bin/ls (No such file or directory)

I had to recompile ls to make it run in our ftp server running 2.2.1. With
2.0.36 works nice (using same libraries, I've never installed glibc on
this machine).

Best regards.

--
Ricardo Galli

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/