phpize将无法在Mac OS X Lion上运行

dir*_*ory 26 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: 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
Run Code Online (Sandbox Code Playgroud)

小智 79

您也可以通过自制软件安装autoconf.赶紧跑

brew install autoconf
Run Code Online (Sandbox Code Playgroud)

一切都会奏效


Nar*_*adu 26

"无法找到autoconf" - 安装autoconf并重试.

sudo port install autoconf 但据我所知,你需要Xcode和MacPorts.