Bashfilename cannot execute binary files
I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit.
Error message is
bash: ./filename : Cannot execute binary file.
I've also installed the gcc and gfortran libraries
Is there any way to help?
$ file um
um: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Best Answer
As you can see from the output of file um
that you posted in a comment, your binary is a 64-bit binary.
32 bit systems cannot run 64 bit binaries, it only works the other way around.