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

时间: 2024-08-04 03:28:01

configure编译时,出现 configure: error: C compiler cannot create executables错误解决 .的相关文章

configure error C compiler cannot create executables错误解决

我们在编译软件的时候,是不是经常遇到下面的错误信息呢? ? checking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking for gcc... gccchecking for C compiler default output file name...configure: error: C compiler cannot create executable

安装RabbitMQ编译erlang时,checking for c compiler default output file name... configure:error:C compiler cannot create executables See 'config.log' for more details.

checking for c compiler default output file name... configure:error:C compiler cannot create executables See 'config.log' for more details. 打开config.log查看明细: 网上找了下,说是没有安装cpp,libc5-devel,而在redhat中指的是glibc,glibc-devel,cpp,查看是否安装,: 果然没有,然后安装: 再次编译,发现换了一

configure: error: C++ compiler cannot create executables

./configure时报错:configure: error: C++ compiler cannot create executables .这个是gcc的组件没有装全,执行一下这个命令就可以解决问题: yum install gcc gcc-c++ gcc-g77

解决configure: error: C++ compiler cannot create executables问题

参考 yum install gcc gcc++ 呵呵,这样的话还是有组件没有安装完整的.再执行一下这个命令就可以解决问题. yum install gcc gcc-c++ gcc-g77

Android中使用databinding编译时出现的error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'

Windows环境下使用svn对AndroidStudio更新代码时,总会在源文件中出现一堆乱码,尤其是xml文件中的乱码,不仅找起来费劲,改起来更费劲. 最近从svn更新代码之后,编译时出现了下面这个提示,而且AS中没有错误提示,这可真是捉急了. databinding error:Execution failed for task ':app:dataBindingProcessLayoutsDebug' 后来,多亏这篇帖子提示,自己写了段代码来尝试下,http://stackoverflo

Linux 编译时出现类似error: stray '\357' in program的解决方法

原因: 在程序中打入了全角字符 具体分析产生原因: 在编程中,由于打字的快速,按下ctrl键后紧接着按下了space键,由于按下两个键的间隙比较短,导致系统误检测到ctrl + space信号,将输入法从半角切换到全角. 解决方法: 只需将定位的错误行号对应的代码删掉重新输入即可. Linux 编译时出现类似error: stray '\357' in program的解决方法

sipp进行压力测试时遇到socket error 99 can't assign request错误

sipp是sip服务器压力测试工具,sipp运行于类linux系统或windows+cygwin环境,采用多进程发送请求机制. sip(会话初始化协议)是应用层协议,承载于udp和tcp之上,广泛应用于语音.视频通话的信令层.在遇到问题的测试场景中,我采用的是tcp连接,sipp为了构造压力测试场景,要模拟多个终端向服务器进行请求,每个终端都要与服务器建立一个tcp连接,sipp是通过调用socket connect方法不断向服务端发送请求,每次connect请求的时候会为连接随机分配一个端口,

《BI项目笔记》SSAS部署时发生的问题——元数据管理器中存在错误 解决办法

原文:<BI项目笔记>SSAS部署时发生的问题--元数据管理器中存在错误 解决办法 在生成和部署期间出错.是否继续?解决办法: 用Microsoft SQL Server Management Studio 连接Analysis Services 然后删除多维数据库,重新布署.这样就OK的.

[转]在Eclipse整合Maven3.6.3插件导入maven项目并编译时,控制台提示No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

近日有同事遇到在编译Maven项目时出现[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?的问题, 原以为这是个个例, 源于同事粗心, 配置环境出问题造成, 后到百度查看一下, 遇到这个问题的不在少数, 但是对问题的解释没有说到根源, 于是写下这篇博客供大家参阅, 如有纰漏, 还请指正.错误代码节选: [ERROR] COMPILATION