在安装配置nginx时报错:
./configure: error: C compiler cc is not found
确认自己是安装了gcc的。
在网上查了很多资料都不管用。最后解决方法:
whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc
cd /usr/bin/
ls -alh gcc
gcc -> gcc-4.9
sudo ln -s gcc-4.9 cc
问题解决!
感谢zyf大神!