【发布时间】:2016-08-21 14:00:16
【问题描述】:
我正在寻找调试 php 脚本的方法。在互联网上,我发现了我可以使用 MacGDBp + XDebug 做到这一点的信息。 当我尝试在 Shell 中使用 PECL 进行安装时:
sudo pecl install xdebug
The next error have been occured:
downloading xdebug-2.4.0.tgz ...
Starting to download xdebug-2.4.0.tgz (264,832 bytes)
.....................done: 264,832 bytes
76 source files, building
running: 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.
帮我找到解决这个问题的方法。
【问题讨论】:
-
你可以尝试通过自制软件安装它吗
-
没有。我应该先安装 BREW 吗?
-
如果您收到
"cannot find autoconf"错误,那么您应该首先安装"autoconf"。如果您使用homebrew,那么您可以使用以下命令安装 autoconf:brew install autoconf
标签: php xdebug osx-elcapitan pecl