mac下phpize编译提示Cannot find autoconf解决办法

在 mac 下 phpize 编译扩展时,出现如下报错:

Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


$ brew install autoconf

如果 Homebrew 未安装,可先参考:Homebrew 套件管理器使 Mac OS X 更完美

$ ruby -e "$(curl -fsSL"