I recently installed a
Debian Jessie amd64 headless server (using one of the netinstalls). The server is up and running and the system is working as expected.
But then I compiled a
.cgi (written in C++). The compilation (using
g++ 4.9.2) went well but as soon as I try to execute the file from
bash it says
No such file or directory.
As I read through other posts regarding this error I tried utilizing the
ldd and even the
cat command, but all of them say they can't find that file.
ls -l shows the file with
755 permission as expected.
But the bash-completion does nothing, it doesn't autocomplete the path.
But now it gets interesting:
midnight commander I can successfully read, edit and execute the binary and
apache lists the complete directory index including the
.cgi and would even let me download it.
What is going on?
Since I could execute it from
mc I don't suppose it's about the executable itself.
Could the bash be corrupted?
Thanks in advance for any insights!