1. 程式人生 > >滴滴雲安裝nginx時候報錯nginx c compiler cc is not found

滴滴雲安裝nginx時候報錯nginx c compiler cc is not found

[[email protected] nginx-1.12.1]# ./configure --prefix=/usr/local/nginx
checking for OS
 + Linux 3.10.0-514.16.1.el7.x86_64 x86_64
checking for C compiler ... not found


./configure: error: C compiler cc is not found

初始化nginx的時候報錯。原因是因為缺少了 gcc等包

直接yun安裝

[[email protected] ~]# yum -y install gcc-c++