编译安装nginx时遇到
C compiler cc is not found
,一般情况下是因为没有安装gcc,但是同事遇到的问题有点不一样,明明已经安装了gcc和cc
./configure遇到错误,C compiler cc is not found
但是gcc和cc命令都已经安装/usr/bin/gcc和、/usr/bin/cc
make gcc: error trying to exec 'cc1': execvp: No such file or directory
应该是gcc安装的时候出现了问题,所以重装gcc等开发组件
yum remove -y gcc
yum install -y gcc gcc-c++