在Mac上的xampp上安装xDebug:phpize无法正常工作

我在OS 10.11上使用xampp5.6.15.我按照这个instruction来安装xDebug.我的“量身定制的安装说明”如下:
在Mac上的xampp上安装xDebug:phpize无法正常工作

在这个说明中,它没有提到下载tgz文件的位置,所以我把它放在了下载文件夹中,在我运行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.

我想这是因为xdebug文件夹不在正确的位置,我已经尝试将它移动到xamppfiles /和xamppfiles / modules /以及其他一些地方,但没有任何工作.

那有什么不对?我应该在哪里放置文件夹?

解决方法:

我想你错过了两件事:

> PHP来源

我不知道XAMPP所以我不能在这里帮忙.也许PHP源代码与XAMPP一起打包,看看吧.

> autoconf

尝试安装autoconf

brew install autoconf
上一篇:使用xdebug和PhpStorm


下一篇:调试PHP