首页 > 其他 > 详细

configure编译时,出现 configure: error: C compiler cannot create executables错误解决 .

时间:2014-11-05 22:49:53      阅读:998      评论:0      收藏:0      [点我收藏+]

 今天在服务器上安装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

configure编译时,出现 configure: error: C compiler cannot create executables错误解决 .

原文:http://www.cnblogs.com/Oman/p/4077462.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!