configure編譯時,出現 configure: error: C compiler cannot create executables錯誤解決 .


 今天在服務器上安裝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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM