linux中PHP7.*源码安装过程中遇到的问题及解决办法

准备搭建一个轻社区娱乐一下,但轻社区要求的PHP版本必须>6.5,而linux自带PHP大都5.*,所以必须要在网上找源码安装,然后,我便找了一个安装教程(链接地址:https://blog.youkuaiyun.com/u010647316/article/details/56489795),


照着安装教程来,刚开始没有错误,但进行到这里时报错了


报错结果显示


然后,用谷歌翻译了一下,表示:


然后又找了一个解决办法(https://blog.youkuaiyun.com/duguduchong/article/details/8699774)


安装完成后系统又报错:

Sorry, I cannot run apxs.  Possible reasons follow:

​1. Perl is not installed

​2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs

​3. Apache was not built using --enable-so (the apxs usage page is displayed)

​The output of /usr/local/apache/bin/apxs follows:./configure: line 6669: /usr/local/apache/bin/apxs: No such file or directoryconfigure: error: Aborting

又找了一篇解决方法(http://blog.sina.com.cn/s/blog_b5dfe4870102waso.html)


按照要求把


改过来后然后就搞定了,一切正常了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值