problem with executables

jstipins at umich.edu jstipins at umich.edu
Sat Nov 26 09:16:33 PST 2005


I'm sure that this is covered in "linux 101," but I must have been absent
that day...

I am running a pure64 x86_64 linux with kernel 2.6.14.2.  Here is the output
of the "file" command:

jstipins at lokiman:~$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for 
GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 
2.6.0, not stripped


When I download a binary for x86-64, such as the following computer algebra
package, I get this:

jstipins at lokiman:~$ file /usr/local/cocoa-4.5/cocoa_qt
/usr/local/cocoa-4.5/cocoa_qt: ELF 64-bit LSB executable, AMD x86-64, 
version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared 
libs), for GNU/Linux 2.4.1, stripped

So it's been compiled for a different kernel.  When I try to execute it, this
happens:

jstipins at lokiman:~$ /usr/local/cocoa-4.5/cocoa_qt
-sh: /usr/local/cocoa-4.5/cocoa_qt: No such file or directory

jstipins at lokiman:~$ ldd /usr/local/cocoa-4.5/cocoa_qt
/usr/bin/ldd: line 116: /usr/local/cocoa-4.5/cocoa_qt: No such file or 
directory

And this seems to happen for any binary which was compiled on a 2.4 kernel,
not just this one.

What exactly is happening here?

Thanks,
-Janis




More information about the cross-lfs mailing list