分享

configure: error: C compiler cannot create executables错误解决

 dwlinux_gs 2015-03-05

我们在编译软件的时候,是不是经常遇到下面的错误信息呢?

 

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的值。

 

 

这个时候只要讲这个值清空就可以了。

 

sh   export LIBS=

sh   export CFLAGS=

 

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多