【发布时间】:2014-03-04 20:17:20
【问题描述】:
我在 Mac OSX Mavericks 上使用 MAMP。我想安装最新的 XDebug,v2.2.4。根据 XDebug Wizard,我下载了 XDebug 2.2.4 源代码。我的系统上安装了许多版本的 phpize - 一个位于 /usr/bin/ 中,还有许多其他版本随 MAMP 一起提供。 MAMP 为其包含的每个 PHP 版本提供所需的 phpize。
根据 XDebug 向导说明 - http://xdebug.org/docs/faq#custom-phpize 寻求使用正确的 phpize - 我通过以下方式运行了 PHP 5.5.3 的 phpize:
/Applications/MAMP/bin/php/php5.5.3/bin/phpize
..得到这个输出:
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
以防这不是错误(因为我似乎在遵循 XDebug 向导的指示),然后我通过以下方式运行配置:
./configure --with-php-config=/Applications/MAMP/bin/php/php5.5.3/bin/php-config
...我跑了:
make
...但出现此错误:
fatal error: 'php.h' file not found
在 OSX 上构建 XDebug 以供 MAMP 使用的正确方法是什么?
非常感谢大家的任何想法或信息。
【问题讨论】: