美文网首页
编译php5.4的时候出现错误----configure: er

编译php5.4的时候出现错误----configure: er

作者: Way_Kwok_Chu | 来源:发表于2020-09-09 16:59 被阅读0次

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

相关文章

网友评论

      本文标题:编译php5.4的时候出现错误----configure: er

      本文链接:https://www.haomeiwen.com/subject/ijzeektx.html