-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pecl problem #9
Comments
可以給我看一下 $PATH 嗎?
|
應該是要這樣:
Off 之後:
|
我的 $PATH :
|
補充,在 /Users/jaceju/.phpbrew/php/php-5.4.0/bin 底下沒有 pecl :
|
裝 php 的時候有 +pear 嗎 ? |
有的,安裝指令如下:
|
用新版本的 phpbrew 重新安裝,結果如下:
|
喔對了 pear 這個 variant 後來已經改為預設(一定要的了) 所以新版的 phpbrew 不加上 pdo 跟 pear 沒關係 |
瞭解,我重新安裝試試看,有問題再回報。 |
重新安裝後,問題還是一樣, phpbrew 並沒有在 ~/.phpbrew/php/php-5.4.0/bin 下安裝 pear 及 pecl ?還是我需要先 switch 過去後,再安裝一次 pear ? |
我用以下的方法解決了:
然後把原有的 pear 目錄連過來:
暫時是這樣解。 |
這樣的話 /Users/jaceju/.phpbrew/php/php-5.4.0/bin 底下有 pecl 或 pear 嗎 ? |
這個地方有點奇怪,因為我之前有一次好像也是沒有 pear, pecl 後來重裝卻又有了 XD |
用 php go-pear.phar 裝的話,就會出現了,但之前重新安裝三次都是沒有 :( |
真奇怪,找時間研究看看 @@ |
對了你裝的 log 檔可以貼上來看看嗎 ? |
log 如下:
|
我把 ~/.pearrc 移掉再重裝就可以了。但這樣就造成系統原先的 pear 會無法正確使用。 |
其實應該是要分開 library path 才對。 有可能是因為 .pearrc 的關係所以才沒裝上去?我需要測試一下 |
我後來測試發現,如果你已經用 go-pear 裝了 pear,那麼 php 在 build 的時候就不會另外幫你裝 pear 。 |
在 phpbrew switch php-5.4.0 的環境下,用 pecl 安裝 xdebug 後,它會把系統原本的 xdebug.so 砍掉;但是如果切換到系統原生模式下再重新安裝 xdebug ,它又會把 phpbrew 已經編譯好的 php-5.4.0 裡的 xdebug.so 砍掉。
如果改成先把已經編譯好的 xdebug.so 備份到別的地方,然後在被砍掉之後,重新複製回來,這樣就可以並存。 (有用 zend_extension 載入)
然後查看系統與 phpbrew 的 pecl 執行檔的位置,發現是共用的。
這是否是因為共用 pecl 的關係?還是有設定檔需要修改?
The text was updated successfully, but these errors were encountered: