方法一
clone and install yafhttps://github.com/laruence/php-yaf
运行 bin/phpize时出现错误:
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
解决上述错误
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
在php.ini添加扩展
extension=yaf-2.3.2/modules/yaf.so
方法二
http://feiyang.me/2012/09/install-php-yaf-in-mac/
brew安装的php54,找不到php-fpm,没有成功