Mac Pro 編譯安裝 PHP擴展 -- Swoole擴展

回顧下先前的安裝筆記:php

PHP5不從新編譯,如何安裝自帶的未安裝過的擴展,如soap擴展?html

#下載 Swoole-1.8.10後,開始編譯#mysql

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擴展sql

 

報錯bash

$ 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.

解決swoole

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
相關文章
相關標籤/搜索