解决configure: error: no acceptable C compiler found in $PATH
Linux安装nginx要求gcc环境,安装gcc时./configure 报如下错误:
configure: error: no acceptable C compiler found in $PATH
官方解释为:
gcc compiler is not in your $PATH
it means either you dont have gcc installed or it’s not in your $PATH variable
to install gcc use this: (run as root)
解决办法:以root权限运行以下指令
Redhat base:(红帽版本)
yum groupinstall "Development tools"
Debian base:(amd64)
apt-get install build-essential
博客主要围绕Linux安装nginx时,安装gcc过程中./configure出现'configure: error: no acceptable C compiler found in $PATH'错误展开。官方解释是gcc编译器不在$PATH中,可能未安装或路径未配置。给出以root权限运行指令的解决办法,还提及红帽和amd64版本。

4万+

被折叠的 条评论
为什么被折叠?



