configure error C compiler cannot create executables错误解决
我们在编译软件的时候,是不是经常遇到下面的错误信息呢?
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=
如果,您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】按钮。
如果,您希望更容易地发现我的新博客,不妨点击一下右下角的【关注 LeLe.Xu】。
因为,我的写作热情也离不开您的肯定支持。
感谢您的阅读,如果您对我的博客所讲述的内容有兴趣,请继续关注我的后续博客,我是LeLe.Xu 。