nginx安装错误:c compiler cc is not found

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

查了下网上的资料,解决方案也不复杂。

先说明下环境:

  • 服务器:CentOS 7
  • nginx:2.3.1

原因是因为缺少 gcc-c++ 的包

解决办法很简单,执行:yum -y install gcc-c++

关注公众号「Python专栏」,后台回复「机器学习电子书」获得100份机器电子学习相关电子书。

猜你喜欢

转载自www.cnblogs.com/moonhmily/p/11455814.html