天天看點

linux中PHP7.*源碼安裝過程中遇到的問題及解決辦法

準備搭建一個輕社群娛樂一下,但輕社群要求的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)

按照要求把

改過來後然後就搞定了,一切正常了