一、安装Nginx、apache报错如下:
./configure: error: C compiler cc is not found
checking for OS
+ Linux 2.6.32-431.23.3.el6.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
二、解决方法:
如上错误是因为缺少gcc环境,需要安装gcc如下命令:
yum install gcc gcc-c++ -y
三、然后编译不报错: