(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”注释掉(令测试程序不会报错)。
原文:https://blog.youkuaiyun.com/fish43237/article/details/40515897
参考:http://www.voidcn.com/article/p-prfwrlso-h.html
update:遇到新错误,解决不了了。建议还是不要从git clone下编译了,下载官方的包安装。
checking for IP_PKTINFO ... not found
checking for IPV6_RECVPKTINFO ... not found
checking for TCP_DEFER_ACCEPT ... not found
checking for TCP_KEEPIDLE ... not found
checking for TCP_FASTOPEN ... not found
checking for TCP_INFO ... not found
checking for accept4() ... not found
checking for eventfd() ... not found
checking for eventfd() (SYS_eventfd) ... not found
checking for int size ...checking for long size ...checking for long long size ...checking for void * size ...checking for uint32_t ... uint32_t not found, u_int32_t not found
./configure: error: can not define uint32_t