在 ubuntu 上配置 Qt 4.6.2 时出错 - “你似乎没有“make”;或“gmake”在你的路径中。无法继续”
我正在尝试在 ubuntu 上安装 Qt 4.6.2。当我运行配置脚本时,我收到以下错误消息“您的 PATH 中似乎没有 'make' 或 'gmake'。无法继续”。
在 PATH 变量的 echo 上我得到
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
运行命令
$which make ,我得到
/usr/bin/make
我该如何处理这个问题?我似乎在路径环境变量中有 make,但配置脚本仍然抛出找不到 make 或 gmake?
I am trying to install Qt 4.6.2 on ubuntu. When I run the configure script I get the following error message "You don't seem to have 'make' or 'gmake' in your PATH. cannot proceed".
On echo of the PATH variable I get
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
on running the command
$which make , I get
/usr/bin/make
How do I proceed with this issue? I seem to have the make in the path env variable but still the config script throws cannot find make or gmake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这不是 make 或 gmake 的问题,也不是 PATH 的问题,只是因为您解压缩 tarball 时没有 -a 选项。所以,要解决这个问题,只要使用‘unzip -a *.zip’就可以了。
It not the problem of make or gmake, nor PATH, Just because you unzip the tarball without -a option. so, to solve this problem, just use 'unzip -a *.zip', it will be fine.
我最近在
fedora32
docker 容器中遇到了此错误,因为未安装which
实用程序。我正在编译 Qt 5.12.9。dnf install 解决了这个问题。
I recently encountered this error in a
fedora32
docker container, because thewhich
utility was not installed. I was compiling Qt 5.12.9.dnf install which
fixed the problem.您应该已经安装了 build-essentials,但没有重新启动,请尝试重新启动或输入:
并使用
echo $MAKE
确保You should have been installed build-essentials but did not restart try either to restart or type:
and make sure with
echo $MAKE
我又下载了源码。我可以毫无问题地运行配置。似乎早期的来源有问题。
I downloaded the source again. I am able to run configure without any problems. Seems like there was an issue with the earlier source.
您应该安装构建必需品
并输入
sudo apt make install
you should install build essentials
and type
sudo apt make install