php phpize 不适用于 Mac OS X Lion
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8430977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
phpize won't work on Mac OS X Lion
提问by directory
I try to install xdebug but I get the follow error message about 'phpize'. How can I fix this thing?
我尝试安装 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
采纳答案by Narcis Radu
"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。
回答by jeroenbourgois
You can also install autoconf through homebrew. Just run
您还可以通过自制软件安装 autoconf。赶紧跑
brew install autoconf
And all will work
一切都会奏效
回答by jormerod1981
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: