[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: "File not found" problem
It's probalby a library problem. Do readelf -a tsh and search for
"lib" in the result. You will see that tsh needs files such as
/lib/ld.so.1, libc.so.0 and so on. At least /lib/ld.so.1 is
missing in your tree. There are at least two ways to solve this:
1. Compile your shell static. Just do "make static && make install"
2. Compile your shell for uClibc. On the top level
"make cris-axis-linux-gnuuclibc && make install && make images"
should do that.
Please note that uploading your own stuff on the 241Q is not
really officially supported so don't expect too much support :-)
From: firstname.lastname@example.org">mailto:email@example.com] On
Behalf Of firstname.lastname@example.org
Sent: Tuesday, June 01, 2004 9:25 AM
Subject: "File not found" problem
I feel a bit stupid asking this question, because I've encountered (and
fixed) it before on x86 Linux, but I don't remember what the cure was at
I have compiled a small encrypting shell (TinyShell) to run on Axis
and servers, using the latest compiler kit for the Axis-82/83
platform. The binary runs fine on the Axis-83, and also on the 2411
server, but I can't get it to run on the 241Q.
I ftp the binary to flash memory (/mnt/flash) and it executes correctly
the 83 and the 2411, but when I try to run it on the 241Q I get a "-sh:
tsh: file not found" error. The directory path is executable, as is
binary itself (mode 755). I have /mnt/flash in my PATH, but even when
type the full pathname of the executable I get the error. I even tried
running it from the /tmp ramfs directory, with no luck. I all cases I
logged in as root.
Oddly enough, if I change the binary's permissions to 644 I get the
"permission denied" error message, but for 755 I consistently get "file
found" on the 241Q.
What dumb thing am I doing wrong?
(By the way, when I try to run it on an Axis-2130 I get the same "not
error, rather than the expected "wrong architecture" error, because it's
compiled for 2.4 and not elinux.)
Thanks for your help!