I'm trying to compile the firmware for my linksys WRVS4400N.
ls shows that exist but when it try to run it bash says it does not exist. I can also cat it, and it is an executable, not a shell script.
|
I'm trying to compile the firmware for my linksys WRVS4400N.
|
|||||||||||||
|
|
You mentioned that the output of Example:
Just make a new 32-bit VM and compile it there. |
|||
|
|
Is it set to being executable? If not, then |
|||
|
When you try to execute a file and bash says it doesn't exist it sometimes means that bash believes the file is a script and that the interpreter specified in the first line (#!) does not exist. If the files is named
The strace command give info about system calls made, for example
execve("/bin/ls", ["ls"], [/* 22 vars */]) = 0
brk(0) = 0x8061000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f82000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=32311, ...}) = 0
mmap2(NULL, 32311, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\30\0\0004\0\0\0"..., 512) =512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30624, ...}) = 0
|
|||||||||||
|