qmake: No such file or directory 的问题解决

Posted 小麦大叔

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了qmake: No such file or directory 的问题解决相关的知识,希望对你有一定的参考价值。

想要用qmake生成Makefile的时候出现了错误;

提示无法找到qmake

首先确保系统中已经安装了qmake
通过find指令进行查找,发现系统中已经安装了qmake,具体如下所示;

然后执行指令

sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/qmake 100

然后在执行qmake -version,错误提示已经不再出现了;

以上是关于qmake: No such file or directory 的问题解决的主要内容,如果未能解决你的问题,请参考以下文章

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory(示

hadoop错误Cannot load libsnappy.so.1 (libsnappy.so.1 cannot open shared object file No such file or di

error while loading shared libraries: libXXXX.so: cannot open shared object file: No such file or di

ipmitool使用报错Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or di

-bash: /usr/local/mysql/scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or di

nginx 启动出现 [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or di