小编Pow*_*rge的帖子

得到错误:bash: ./program: cannot execute binary file: Exec format error

当我运行命令时

./program 
Run Code Online (Sandbox Code Playgroud)

我收到错误:

bash: ./program: cannot execute binary file: Exec format error
Run Code Online (Sandbox Code Playgroud)

当我运行时,uname -a我得到:

4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:34:49 UTC 2016 i686 i686 i686 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

我还检查了有关我试图运行的程序的信息,我得到了:

ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=c154cb3d21f6bbd505d165aed3aa6ed682729441, not stripped
Run Code Online (Sandbox Code Playgroud)

/proc/cpuinfo 显示

flags       : fpuvme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx …
Run Code Online (Sandbox Code Playgroud)

linux bash ubuntu

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

bash ×1

linux ×1

ubuntu ×1