The file is there... but "No such file or directory"

0 like 0 dislike
7 views
There is a file, an executable binary (I may be wrong with the definition not the core business had to deal with) is in /usr/local/somedir/sbin. Watch ls-l file is, but when you try to access a file receive "No such file or directory". All actions under Ruth, the Axis of Debian 5 Lenny. Why might that be?
by | 7 views

6 Answers

0 like 0 dislike
Everything was much easier — was not the same architecture... was on the VDS i686, although uname-a showed the x86_64...
by
0 like 0 dislike
While in /usr/local/somedir/sbin refer to the file like this:
# ./filename
Or absolute paths...
\r
Most likely, /usr/local/somedir/sbin not in PATH
by
0 like 0 dislike
Look
\r
ldd /usr/local/somedir/sbin/filename.
\r
It's possible he's just a thread .so libraries are not enough
by
0 like 0 dislike
Or, more likely, that the file starts like this:
\r
#!/usr/bin/someinterpreter
\r
and this someinterpreter no :-) That's ten to one that it is.
\r
> It is possible he just a thread .so libraries are not enough
\r
No, the missing library is another abuse.
\r
> Likely /usr/local/somedir/sbin not in PATH
\r
bash'd say:
\r
\r[~]$ asdasd
bash: asdasd: command not found
\r
by
0 like 0 dislike
Something similar happened with a python script:
\r
$ ls-l -rwxr-xr-x 1 bravebug users 386 Oct 21 00:40 myscript.py* $ ./myscript.py : No such file or directory

The problem was in the type of line — it was a Win (CRLF)
by
0 like 0 dislike
Most likely, it needs some other file.
Run strace /usr/local/somedir/sbin and look at the output.
by

Related questions

110,608 questions
257,186 answers
0 comments
1,134 users