解决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
Logo

更多推荐