简体   繁体   English

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

[英]phpize won't work on Mac OS X Lion

I try to install xdebug but I get the follow error message about 'phpize'. 我尝试安装xdebug但我得到关于'phpize'的关注错误消息。 How can I fix this thing? 我怎么能解决这个问题?

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

You can also install autoconf through homebrew. 您也可以通过自制软件安装autoconf。 Just run 赶紧跑

brew install autoconf

And all will work 一切都会奏效

"Cannot find autoconf" - Install autoconf and retry. “无法找到autoconf” - 安装autoconf并重试。

sudo port install autoconf but you need Xcode and MacPorts as far as I know. sudo port install autoconf但据我所知你需要Xcode和MacPorts。

For me, I had not agreed to the Xcode license :- 对我来说,我还没有同意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:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM