今天在服務器上安裝bind9.9.2的時候,gcc和gcc-c++已經安裝過了,但是./configure的時候還是報錯:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/bind-9.9.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
解決方法:
在linux的命令行中,輸入下面的兩行,清空CFLAGS和LIBS的值:
export LIBS=
export CFLAGS=
然后,就再運行./configue 等時,就可以正常通過了。
本文出自 “linux開源-不斷的總結....” 博客,請務必保留此出處http://fantefei.blog.51cto.com/2229719/1070919
