Ubuntu nginx C compiler cc is not found

来源:互联网 发布:海绵宝宝 知乎 编辑:程序博客网 时间:2024/06/03 16:55
二、遇到的问题
(1)问题内容:
checking for C compiler ... found but is not working
./configure error : C compiler gcc is not found
(2)原因分析:
configure首先会编译一个小测试程序,通过测试其运行结果来判断编译器是否能正常工作,由于交叉编译器所编译出的程序是无法在编译主机上运行的,故而产生此错误。
(3)解决办法:

编辑auto/cc/name文件,将21行的“exit 1”注释掉(令测试程序不会报错)。

链接http://blog.csdn.net/fish43237/article/details/40515897

0 0