Ubuntu Qmake不是可执行文件

Dol*_*rma 2 c++ linux ubuntu qt

在Ubuntu中安装新版本的QtCreator之后

tux-world@alachiq:~ > sudo apt-get install qt5-qmake build-essential g++ gcc
   Reading package lists... Done
   Building dependency tree       
   Reading state information... Done
   build-essential is already the newest version.
   g++ is already the newest version.
   g++ set to manually installed.
   gcc is already the newest version.
   qt5-qmake is already the newest version.
   0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.
Run Code Online (Sandbox Code Playgroud)

在选项中Build & Run选择`/ usr/bin/qmake'中的qmake我收到此错误:

The qmake executable /usr/lib/i386-linux-gnu/qt4/bin/qmake could not be added: qmake '/usr/lib/i386-linux-gnu/qt4/bin/qmake' is not an executable.
Run Code Online (Sandbox Code Playgroud)

在Home系统中,安装这些软件包并在选项中设置Qmake后没有任何问题

其他信息:

tux-world@alachiq:~ > apt-cache search qt5-qmake
qt5-qmake - Qt 5 qmake Makefile generator tool

tux-world@alachiq:~ > ldd /opt/qtForArm/bin/qmake 
     ldd: /opt/qtForArm/bin/qmake: No such file or directory

tux-world@alachiq:~ > sudo chmod +x /usr/lib/i386-linux-gnu/qt4/bin/qmake
[sudo] password for tux-world: 
chmod: cannot access ‘/usr/lib/i386-linux-gnu/qt4/bin/qmake’: No such file or directory
Run Code Online (Sandbox Code Playgroud)

更新:

安装此目录下的Qmake后:

tux-world@alachiq:~ > whereis qmake
qmake: /usr/bin/qmake /usr/bin/X11/qmake
Run Code Online (Sandbox Code Playgroud)

列表目录/usr/sbin:

tux-world@alachiq:~ > ls -a /usr/sbin/qmake
ls: cannot access /usr/sbin/qmake: No such file or directory
Run Code Online (Sandbox Code Playgroud)

检查可执行文件和其他信息qmake:

tux-world@alachiq:~ > ls -a -l /usr/bin/qmake
lrwxrwxrwx 1 root root 9 ????? 19 15:53 /usr/bin/qmake -> qtchooser
Run Code Online (Sandbox Code Playgroud)

Dol*_*rma 6

安装qt5-default后我的问题解决了:

sudo apt-get install qt5-default 
Run Code Online (Sandbox Code Playgroud)

谢谢