错误如下: checking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for cc... ccchecking whether the C compiler works... noconfigure: error: in `/usr/local/src/php540/php-5.4.0':configure: error: C compiler cannot create executablesSee `config.log' for more details. 分析,百度了很长时间终于发现,原来是缺少gcc 所以: yum install -y gcc就可以了