在安装php的时候出先错误--configure: error: in `/usr/local/src/php540/php-5.4.0':

回复 收藏
本帖最后由 飞侠 于 2016-3-6 12:55 编辑

错误如下:
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
See `config.log' for more details.
分析,百度了很长时间终于发现,原来是缺少gcc
所以:
yum  install -y gcc 就可以了

http://www.cnblogs.com/Dicky-Zhang/p/5247126.html

详细参见博客:
2016-03-06 12:54 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: