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

See `config.log' for more details.


有很多人建议重装GCC,但是确无济于事。

这个错误产生的原因其实很简单: 由于我们在编译软件之前,进行了export操作,改变了CFLAGS和LIBS的值。

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

export LIBS=
export CFLAGS=


转自:http://blog.csdn.net/tyyhong/article/details/4266749

你可能感兴趣的:(PHP,centos)