phpize-won';我不能在MacOSX上工作

phpize-won';我不能在MacOSX上工作,php,macos,xdebug,pecl,Php,Macos,Xdebug,Pecl,我试图安装xdebug,但收到了关于“phpize”的以下错误消息。 我怎样才能修理这个东西 leny:~ nick$ sudo pecl install xdebug Password: downloading xdebug-2.1.2.tgz ... Starting to download xdebug-2.1.2.tgz (304,229 bytes) ............done: 304,229 bytes 66 source files, building running: p

我试图安装xdebug,但收到了关于“phpize”的以下错误消息。 我怎样才能修理这个东西

leny:~ nick$ sudo pecl install xdebug
Password:
downloading xdebug-2.1.2.tgz ...
Starting to download xdebug-2.1.2.tgz (304,229 bytes)
............done: 304,229 bytes
66 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed
“找不到autoconf”-请安装autoconf并重试


sudo端口安装autoconf
但据我所知,您需要Xcode和MacPorts。

您也可以通过自制软件安装autoconf。快跑

brew install autoconf

所有这些对我来说都会起作用,我没有同意Xcode许可证:-

$ sudo /usr/bin/m4 --version


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING APPLE TERMS:

感谢您的快速回复。我在这个地区是一个中午,但是如何安装autoconf?非常感谢。从中获取权限错误。首先需要做:sudo chown-R yourusername/usr/local,然后是:sudo chmod-R u+w/usr/local,最后是:brew链接自动通信这对我帮助很大。谢谢我也遇到了这个问题。我安装了autoconf,并将其添加到bash配置文件的路径中,但仍然收到此消息。不确定安装autoconf是否与此有关。