回顧下先前的安裝筆記:
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