Red Hat Bugzilla – Bug 18094
File not found even though ls finds it...
Last modified: 2008-05-01 11:37:59 EDT
After installing RH7 (Deluxe), I tried installing Matlab 5, which worked
fine under all previous versions of Linux. However, after installing, I
get the message
/usr/local/matlab5/bin/lnx86/matlab: No such file or directory
which is very strange since that file exists. Even cd'ing into that
directory and doing ./matlab still gives me the "No such file..." error
even though I chmod'd +777 it (and tried the command as root). A similar
thing happened on the installation of Matlab since it could not find a
file xsetup (even though it was on the CDROM), but I got around that using
a text install.
Now, the point is that I strongly believe this is *not* a Matlab problem,
but a problem of Linux since even if the file was completely screwed up,
doing ./matlab would still give back some other error message than "No
such file..." Of course, I also tried adding . to my PATH too. That did
(By the way, I selected bash as the component, since I could not think of
what could cause this.)
By any chance, is /usr/local/matlab5/bin/lnx86/matlab a script?
If you try to execute a script that requires a shell that doesn't exist (i.e. a
script that starts with "#!/bin/my-nonstandard-shell"), it should and will
generate "File not found".
Please add the output of "head -n5 /usr/local/matlab5/bin/lnx86/matlab"
No, this is definitely *not* a script. head ... gives
4 (tse44?4? cbTT?T?rrc``??dy
(and some more stuff like that). It is an executable file.
However, as I said before it should not matter what kind of file this is. As
long as it's executable, *something* should happen, but definitely not a "No
such file..." error.
Wrong guess, same reason: The header shows it wants /lib/ld-linux.so.1 - this is
We no longer support libc5.
If you need to run it, install the libc5 compat packages (libc and ld.so) from
May be it should give to the user some indication of the real cause of the error
... and certainly not say "File not found ....!!!"