mac ox php.ini 位置,php – 使用MAMP在Mac OSX上构建/安装XDebug

我在使用MAMP在Mac OSX上构建/安装XDebug时遇到问题.

到目前为止,我在网上广泛搜索,目前我被困在XDebug“安装向导”的一部分,告诉我在我下载的源代码上“运行:PHPize”.

当我运行PHPize时,我收到以下消息:

new-host-2:xdebug-2.2.0 Dima$PHPize

grep: /usr/include/PHP/main/PHP.h: No such file or directory

grep: /usr/include/PHP/Zend/zend_modules.h: No such file or directory

grep: /usr/include/PHP/Zend/zend_extensions.h: No such file or directory

Configuring for:

PHP Api Version:

Zend Module Api No:

Zend Extension Api No:

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then,rerun this script.

如果我做了一个PHPize我得到:

new-host-2:xdebug-2.2.0 Dima$which PHPize

/usr/bin/PHPize

这不是我想要使用的版本,我想使用MAMP安装的PHPize版本我假设因为我想在MAMP版本的PHP上安装XDebug.这很令人费解,因为我已将MAMP特定的PHP bin路径添加到我的.bash_profile已经进入$PATH变量.

如果我运行echo $PATH我得到:

new-host-2:xdebug-2.2.0 Dima$echo $PATH

/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/PHP/PHP5.4.3/bin:/Users/Dima/.rvm/gems/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/Dima/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

MAMP特定的PHP路径显示在’/usr/bin’之前.我试过的下一件事是运行MAMP特定的PHPize,手动提供整个路径,如下所示:

new-host-2:xdebug-2.2.0 Dima$/Applications/MAMP/bin/PHP/PHP5.4.3/bin/PHPize

-bash: /Applications/MAMP/bin/PHP/PHP5.4.3/bin/PHPize: Permission denied

现在我在Finder中检查了这些文件的权限,它表明我拥有读取和写入此文件夹文件的完全权限.我有点失落.任何帮助将非常感激.如果有助于诊断此问题,我可以发布任何其他信息.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值