构建XDebug以供MAMP使用?

Vik*_*ikR 2 mamp makefile xdebug

我在Mac OSX Mavericks上使用MAMP.我想安装最新的XDebug,v2.2.4.根据XDebug向导,我下载了XDebug 2.2.4源代码.我的系统上安装了许多版本的phpize - 一个位于/ usr/bin /中,还有许多其他版本的MAMP.MAMP为它包含的每个PHP版本提供所需的phpize.

寻求使用正确的phpize,根据XDebug向导说明 - http://xdebug.org/docs/faq#custom-phpize - 我通过以下方式运行php.5 for PHP 5.5.3:

 /Applications/MAMP/bin/php/php5.5.3/bin/phpize
Run Code Online (Sandbox Code Playgroud)

..得到了这个输出:

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: 
Run Code Online (Sandbox Code Playgroud)

万一这不是一个错误(因为它似乎我遵循XDebug向导),然后我运行configure via:

./configure --with-php-config=/Applications/MAMP/bin/php/php5.5.3/bin/php-config 
Run Code Online (Sandbox Code Playgroud)

......我跑了:

make
Run Code Online (Sandbox Code Playgroud)

...但得到了这个错误:

fatal error: 'php.h' file not found
Run Code Online (Sandbox Code Playgroud)

在OSX上构建XDebug以供MAMP使用的正确方法是什么?

非常感谢所有人的想法或信息.

Scr*_*aws 5

我遇到了类似的问题,在安装XCode和XCode的命令行工具后解决了这个问题.我已经安装了XCode,但我最近搬到了一台新机器,所以我不得不重新打开它并更新了一些东西.然后我打开终端并运行命令......

xcode-select --install

这突然出现了我安装命令行工具的提示,它解决了我的问题.