![./configure:未找到 C 编译器 cc](https://linux22.com/image/1137894/.%2Fconfigure%EF%BC%9A%E6%9C%AA%E6%89%BE%E5%88%B0%20C%20%E7%BC%96%E8%AF%91%E5%99%A8%20cc.png)
我目前正在尝试在 Ubuntu Server 16.04 LTS 上使用 RTMP 模块从源代码编译 Nginx。一切准备就绪,但我无法编译。我收到以下错误:
./configure: error: C compiler cc is not found
debian/rules:150: recipe for target 'config.arch.full' failed
make[1]: *** [config.arch.full] Error 1
make[1]: Leaving directory '/home/sysadmin/nginx/nginx-1.10.1'
debian/rules:126: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
我已经尝试过以下解决方案:
正在安装
build-essentials
。检查
gcc
并cc
处于正常$PATH
工作状态。尝试
CC=/usr/bin/cc ./configure
,出现错误:./configure: error: C compiler /usr/bin/cc is not found
正在重新启动系统。