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 not help. (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 ELF```ab`4pq 4 (tse44?4? cbTT?T?rrc``??dy dy o`hy h*h*`3[`eoaPM P]P]xxec/lib/ld-linux.so.1 a e D T:b4 7 e E w (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 libc5 stuff. We no longer support libc5. If you need to run it, install the libc5 compat packages (libc and ld.so) from 6.2.
May be it should give to the user some indication of the real cause of the error ... and certainly not say "File not found ....!!!"