最先按教程运行:
/Applications/MAMP/bin/php/php7.0.9/bin/phpize
显示下面这种
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
所以要先装autoconfexport PATH=/usr/local/bin:$PATH
brew install autoconf
再重新运行/Applications/MAMP/bin/php/php7.0.9/bin/phpize
报Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
成功了,现在继续安装
./configure -—with-php-config=/Applications/MAMP/bin/php/php7.0.9/bin/php-config
然后make
make install
搞定