![Fortran:gfortran 给出错误“无法执行二进制文件:执行格式错误”](https://linux22.com/image/1089244/Fortran%EF%BC%9Agfortran%20%E7%BB%99%E5%87%BA%E9%94%99%E8%AF%AF%E2%80%9C%E6%97%A0%E6%B3%95%E6%89%A7%E8%A1%8C%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6%EF%BC%9A%E6%89%A7%E8%A1%8C%E6%A0%BC%E5%BC%8F%E9%94%99%E8%AF%AF%E2%80%9D.png)
我正在尝试一个简单的命令gfortran --version
但收到此错误:
marcus@aurelius:~$ gfortran -v
-bash: /usr/local/bin/gfortran: cannot execute binary file: Exec format error
无论我尝试用什么进行编译,似乎都会出现相同的错误gfortran
。我该如何修复此问题?
这是安装的内容/usr/bin
:
$ ls /usr/bin/ | grep gfortran
gfortran
gfortran-4.8
x86_64-linux-gnu-gfortran
x86_64-linux-gnu-gfortran-4.8
这就是所安装的/usr/local/bin
;
$ ls /usr/local/bin/
f2py isympy theano-nose
gfortran miranda theano-test
gfortran-4.8 theano-cache x86_64-apple-darwin13.0.0-gfortran