天天看點

安裝php出現“/replace/with/path/to/perl/interpreter: ba

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)

解決方法:

找到apache目錄下的apxs腳本檔案,然後編輯它,把第一行的注釋的地方修改為perl的可執行路徑(首先要保證你安裝過perl,沒有安裝請先行安裝),如

yum install perl perl-devel

vi /usr/local/apache2/bin/apxs

#!/usr/bin/perl -w ####原來為 /replace/with/path/to/perl/interpreter

本文轉自 蝦米的春天 51CTO部落格,原文連結:http://blog.51cto.com/lsxme/2053717,如需轉載請自行聯系原作者