歡迎您光臨本站 註冊首頁

[安裝] 安裝php時競提示找不到perl,無法執行apxs?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

[安裝] 安裝php時競提示找不到perl,無法執行apxs?

系統是freebsd6.0,mini安裝和Development安裝都試了,而且也用cvsup升級ports了。
安裝的軟體是:
apache2.0.45,2.0.55,2.2.1,1.3.27都試了。
./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most
make
make install
php4.3.2,4.4.2,5.1也都試了。
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql  
--with-apxs2=/usr/local/apache2/bin/apxs
到這時有如下提示:
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/apache2/bin/apxs follows:
./configure: /usr/local/apache2/bin/apxs: not found
configure: error: Aborting

單獨安裝perl也不行,還是上面的提示,請朋友們幫忙。謝謝。

[ 本帖最後由 HonestQiao 於 2005-12-29 12:07 編輯 ]
《解決方案》

一般情況,系統已經裝了perl的,版本問題嗎?
用find查下,apxs的路徑對不對啊!!我以前也出現過這樣的抱錯.

[ 本帖最後由 lazy_bug 於 2005-12-28 16:25 編輯 ]
《解決方案》

apxs路徑絕對沒問題。我不會出這種低級錯誤的
《解決方案》

perl -v

結果是?
《解決方案》

這個情況,我也碰以過,
我的解決辦法是:

sudo find / -name "apxs" -type f -print
看路徑,然後把這個路徑複製過來到 php 的 configure 的信息里就可以了。

這個查找到的路徑,好像和手工寫的是一樣的,但用這個複製過來就ok, 我也不知是什麼原因。
《解決方案》

好啊樓主,沒想到啊,太好了

[火星人 ] [安裝] 安裝php時競提示找不到perl,無法執行apxs?已經有658次圍觀

http://coctec.com/docs/service/show-post-12854.html