您现在的位置是:首页 > 文章详情

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

日期:2018-05-12点击:556

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


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


报错结果显示


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


然后又找了一个解决办法(https://blog.csdn.net/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)


按照要求把


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

原文链接:https://yq.aliyun.com/articles/598048
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章