phpize won't work on Mac OS X Lion

雨燕双飞 提交于 2019-12-31 09:11:13

问题


I try to install xdebug but I get the follow error message about '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

回答1:


"Cannot find autoconf" - Install autoconf and retry.

sudo port install autoconf but you need Xcode and MacPorts as far as I know.




回答2:


You can also install autoconf through homebrew. Just run

brew install autoconf

And all will work




回答3:


For me, I had not agreed to the Xcode license :-

$ 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:


来源:https://stackoverflow.com/questions/8430977/phpize-wont-work-on-mac-os-x-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!