回顾下先前的安装笔记:
PHP5不重新编译,如何安装自带的未安装过的扩展,如soap扩展?
#下载 Swoole-1.8.10后,开始编译#
cd /Users/jianbao/Downloads/swoole-src-1.8.10-stable /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-async-mysql sudo make install
修改 php.ini,加入extension=swoole.so,开启swoole扩展
【报错】
$ sudo /usr/local/php/bin/phpize Password: Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoheader. Please check your autoconf installation and the $PHP_AUTOHEADER environment variable. Then, rerun this script.
【解决】
brew install autoconf ln -s /usr/local/Cellar/autoconf/2.69/bin/autoconf /usr/local/bin/autoconf ln -s /usr/local/Cellar/autoconf/2.69/bin/autoheader /usr/local/bin/autoheader