nginx c compiler cc is not found

今天安装软件nginx的时候遇到的报错:c compiler cc is not found

查了下网上的资料,原因是因为缺少 gcc-c++ 的包,解决方法只需要安装gcc-c++包就可以了,执行指令如下。

yum -y install gcc-c++

说明环境:服务器:CentOS 7,nginx:2.3.1