php安装报错:PHP configure: error: build test failed. Please check the config.log

红太狼 2022-08-14 03:51 121阅读 0赞

今天对php安装的时候,在编译的时候一直遇到 configure: error: build test failed. Please check the config.log错误,

无法解决,最好看了好久log,其实都没要明白。

最后怀疑是编译系统可能存在问题,故重新通过yum安装了gcc等后,重新编译就可以了,诡异啊!

yum install gcc* -y

./configure —prefix=/usr/local/php —with-apxs2=/usr/local/apache2/bin/apxs

发表评论

表情:
评论列表 (有 0 条评论,121人围观)

还没有评论,来说两句吧...

相关阅读