我正在尝试在mamp 2.1.2上安装pecl,pearl和xdebug。我已经尝试了几乎所有东西,但即使xdebug出现在phpinfo中它似乎也不起作用。我也尝试过netbeans,但没有。我是一个新手,并且非常沮丧如何运行它并使用断点创建我的本地调试项目。有人可以帮我解决如何在我的OSX上制作pecl,pear和xdebug所以我可以调试我的项目。
答案 0 :(得分: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未找到的问题