今天在mac上编译yaf扩展的时候,遇到这个报错:php
:$ /usr/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.this
缘由是由于缺乏m4和autoconf包,解决办法:ip
下载这两个包:io
http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz编译
http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gzftp
接下来就是编译安装扩展
# tar -zvxf m4-1.4.9.tar.gz 下载
# cd m4-1.4.9/ vi
# ./configure && make && make install make
# cd ../
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
而后在执行phpize,成功。