filmov
tv
Ubuntu: Bash: ./filename : Cannot execute binary file
Показать описание
Ubuntu: Bash: ./filename : Cannot execute binary file
Question: 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 installed the gcc and gfortran libraries too.
Could anyone 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
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 1 person ==
Another solution for people who are having this problem except the part about
unmatched bits is that running the file without the command "bash".
Just use chmod +x 'path to the file' and then run 'the path to the file' in
terminal.This is how I solved my problem.
== This solution helped 2 people ==
Try making the file executable
Then try running it
But if this is a exe file compiled for Windows, you probably need to install
Wine.
Question: 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 installed the gcc and gfortran libraries too.
Could anyone 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
Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):
== This solution helped 1 person ==
Another solution for people who are having this problem except the part about
unmatched bits is that running the file without the command "bash".
Just use chmod +x 'path to the file' and then run 'the path to the file' in
terminal.This is how I solved my problem.
== This solution helped 2 people ==
Try making the file executable
Then try running it
But if this is a exe file compiled for Windows, you probably need to install
Wine.