Linux 解决 cannot execute binary file

解决 cannot execute binary file

场景说明在执行任何的程序之前,必须确保程序和系统的版本位数是一致的,如果一种是x64,一种是32位的,就会出现上述的问题具体例子[root@jack 迅雷下载]# ./qt-opensource-linux-x64-5.7.0.runbash: ./qt-opensource-linux-x64-5.7.0.run: cannot execute binary fi...

场景说明

    在执行任何的程序之前,必须确保程序和系统的版本位数是一致的,如果一种是x64,一种是32位的,就会出现上述的问题


具体例子

[root@jack 迅雷下载]# ./qt-opensource-linux-x64-5.7.0.run 

bash: ./qt-opensource-linux-x64-5.7.0.run: cannot execute binary file

[root@jack 迅雷下载]# lsb_release -a

LSB Version::core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-


ia32:printing-4.0-noarch

Distributor ID:RedHatEnterpriseServer

Description:Red Hat Enterprise Linux Server release 6.3 (Santiago)

Release:6.3

Codename:Santiago

[root@jack 迅雷下载]# file qt-opensource-linux-x64-5.7.0.run 

qt-opensource-linux-x64-5.7.0.run: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically 


linked (uses shared libs), for GNU/Linux 2.6.18, not stripped

[root@jack 迅雷下载]# file qt-linux-opensource-5.2.0-x86-offline.run 

qt-linux-opensource-5.2.0-x86-offline.run: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), 


dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

    

转载于:https://blog.51cto.com/fengyuzaitu/1587878

Logo

更多推荐

  • 浏览量 3290
  • 收藏 0
  • 0

所有评论(0)

查看更多评论 
已为社区贡献287条内容