phpize won't work on Mac OS X Lion

directory picture directory · Dec 8, 2011 · Viewed 37.2k times · Source

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

Answer

jeroenbourgois picture jeroenbourgois · Mar 19, 2012

You can also install autoconf through homebrew. Just run

brew install autoconf

And all will work