phpize在Mac OS X Lion上无法工作

30

我尝试安装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,并将其添加到我的bash配置文件中的路径中,但仍然收到此消息。不确定安装autoconf是否与此有关。 - jenlampton
3个回答

87

你也可以通过Homebrew安装autoconf。只需运行

brew install autoconf

所有的一切都会运行正常


1
从中获得了权限错误。 首先需要执行: sudo chown -R yourusername /usr/local 然后执行: sudo chmod -R u+w /usr/local 最后执行: brew link autoconf - mpemburn
这对我帮助很大。谢谢! - Rick

28

"找不到 autoconf" - 安装 autoconf 然后重试。

sudo port install autoconf 但是需要 Xcode 和 MacPorts,据我所知。


谢谢您的快速回复。我在这个领域是新手,但我该如何安装autoconf?谢谢! - directory

1
对我来说,我还没有同意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:

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接