最近在ubuntu 12.04下安装QT的过程中,遇到一个问题。
./qt-opensource-linux-x64-5.7.0.run出现了bash: ./qt-opensource-linux-x64-5.7.0.run: cannot execute binary file。
我用我自己的解决方案分享给大家,同时也为自己以后做个笔记。
第一:查看Linux当前操作系统名称(信息)。命令:uname -a
出现下面这个:
Linux ubuntu 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686 i686 i386 GNU/Linux
可以看出当前Linux为32位操作系统。
所以:qt-opensource-linux-x64-5.7.0.run (64位操作系统)不可用。此时需要去官网下载支持32位操作系统的版本。