Re: [問題] 無法安裝 PHP5

看板FreeBSD作者時間18年前 (2007/03/16 00:50), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/7 (看更多)
※ 引述《ychsiao.bbs@bbs.ychsiao.org (ychsiao)》之銘言: : ※ 引述《snese.bbs@ptt.cc》之銘言: : 裝libxml2時有開thread的選項? : > 利用 PORTS 進行安裝 PHP5 時,會出現下列的訊息: : > Configuring extensions : > checking whether to enable LIBXML support... yes : > checking libxml2 install dir... /usr/local : > checking for xml2-config path... /usr/local/bin/xml2-config : > checking whether libxml build works... no : > configure: error: build test failed. Please check the config.log for details. : > ===> Script "configure" failed unexpectedly. : > Please report the problem to ale@FreeBSD.org [maintainer] and attach the : > "/usr/ports/lang/php5/work/php-5.2.1/config.log" including the output of the : > failure of your make command. Also, it might be a good idea to provide an : > overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). : > *** Error code 1 : > 感覺是 libxml 的問題,但 libxml 跟 libxml2 都已經安裝,不知為何還出現這些 : > 錯誤訊息,奇怪的是 PHP4 反而能夠安裝。 : > 請問有經驗的前輩,這可能是什麼狀況呢?有需要的話,我能把整個 config.log : > 貼出來。謝謝各位的閱讀,謝謝。 預設不是就是開的嗎 - -? anyway 無論開與不開,我都測試過了 跟 libxml2 的 threads 好像沒有什麼直接的關係說 -_- 題外話,剛剛利用了一種奇怪的方法,暫時的解決了問題,但我 相信這絕對不是真的的解決方案 囧rz 很鳥的解決方案: 1. 安裝 Apache22 or Apache2 ( 1.x 就無效 -_- ) 2. 在安裝 php5 時,make config 記得勾選 Build Apache module 3. 進過前兩步,php5 就神奇般的安裝完成 4. 因為我是用 lighttpd ,於是 apache 就得被移除 P.S. (1) 沒先安裝 apache ,後面 php5 就會失敗。 (2) libxml2 有無使用 threads 都已測試過,跟結果無關。 希望有前輩能幫忙解決我的困惑,謝謝 :) -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.223.216.7
文章代碼(AID): #15-NbOs6 (FreeBSD)
文章代碼(AID): #15-NbOs6 (FreeBSD)