2013-03-06 106 views
1

我想在mamp 2.1.2上安裝pecl,pearl和xdebug。我已經嘗試幾乎所有東西,但即使在phpinfo中出現xdebug時,它似乎也不起作用。我也嘗試過netbeans,但沒有任何結果。我是一個新的mac,真的很沮喪如何運行它,並使用斷點進行我的本地項目調試。有人可以幫我弄清楚如何在我的OSX上製作pecl,pear和xdebug,這樣我就可以調試我的項目了。在mamp上安裝pecl,pear和xde

+0

我發現這個解決方案非常有幫助:http://stackoverflow.com/a/11175197/369326 – 2014-02-03 11:06:47

回答

1

檢查此鏈接:

http://www.lullabot.com/articles/installing-php-pear-and-pecl-extensions-on-mamp-mac-os-x-107-lion

編輯

MAMP不一堆的PHP源

Download MAMP components and configure  
URL: http://www.mamp.info/en/downloads/index.html (i.e. MAMP_components_2.0.2.zip) 
Unpack your MAMP_components_2.0.2.zip 
Identify your php-5.x.x.tar.gz file (where 5.x.x is your version of PHP) 
Create directory for your PHP sources: "mkdir -vp /Applications/MAMP/bin/php5/include" 
Untar php-5.x.x.tar.gz into /Applications/MAMP/bin/php/php5.*/include or /Applications/MAMP/bin/php5/ include e.g. tar zxvf php-5.x.x.tar.gz -C /Applications/MAMP/bin/php/php5.?.??/include 

Rename your php-5.x.x directory to php (without the version numbering) e.g. mv /Applications/MAMP/bin/php/php5.2.17/include/php-5.?.?? /Applications/ MAMP/bin/php/php5.2.17/include/php 

Configure PHP sources (it’ll create necessary files i.e. zend_config.h, tsrm_config.h, etc.) 

cd /Applications/MAMP/bin/php/php5.?.??/include/php ./configure 

這個過程再修復,但出貨這解決了與php.h沒有被發現的問題

+0

我做了組件事情BT後最後一行我沒有得到任何提示,是嗎?我無法理解這一點「可以通過編輯主目錄下的」.profile「文件來修改路徑」我可以在哪裏找到.profile? – Nofel 2013-03-06 19:30:53