CentOS7.9安装nginx时,报错./configure: error: C compiler cc is not found
CentOS7.9安装nginx时,执行./configure --prefix=/usr/local/nginx命令时,报错:
checking for OS
+ Linux 3.10.0-1160.24.1.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
解决办法:
yum install -y gcc gcc-c++ autoconf automake make
图片中的yy是别名:alias yy=“yum install -y” 生成的临时命令
再执行
./configure --prefix=/usr/local/nginx
问题解决!!!!!!!!