configure error C compiler cannot create executables错误解决
2016-03-11 11:00
363 查看
我们在编译软件的时候,是不是经常遇到下面的错误信息呢?
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
有很多人建议重装GCC,但是确无济于事。
这个错误产生的原因其实很简单: 由于我们在编译软件之前,进行了export操作,改变了CFLAGS和LIBS的值。
这个时候只要讲这个值清空就可以了。
export LIBS=
export DYLD_LIBRARY_PATH=
export LD_LIBRARY_PATH=
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
有很多人建议重装GCC,但是确无济于事。
这个错误产生的原因其实很简单: 由于我们在编译软件之前,进行了export操作,改变了CFLAGS和LIBS的值。
这个时候只要讲这个值清空就可以了。
export LIBS=
export DYLD_LIBRARY_PATH=
export LD_LIBRARY_PATH=
相关文章推荐
- 找工作——集合框架
- Webproject 每次运行都停到workerDone(this); tomcat调试
- java-json 数据前台显示为问号解决
- 服装PDM产品数据管理
- xml-3处理
- GET请求和POST请求的区别
- C++第一次实验成果
- shell中source sh exec的区别
- android 后台service开机自启动
- 行内元素间距问题
- iOS-category
- fix error: device not found
- c++第一次实验
- oracle索引导致的查询记录为0的案例
- sublime text3 中文补丁以及乱码解决方案
- Windows 下Redis的安装教程和PHP使用Redis示例
- 一:概述
- xenserver中xen的的架构介绍
- 5分钟看懂│从深蓝到阿尔法狗,人机大战20年进化了什么?
- Activity中finish() onDestroy() 和System.exit()的区别