安装php扩展时遇到Cannot find autoconf

安装php安装扩展 运行 Phpize时 有的机器会报

 

/usr/local/php/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 is set correctly and then rerun this script.
按  http://www.spiration.co.uk/post/1385/Cannot%20find%20autoconf.%20Please%20check%20your%20autoconf%20installation 的提示可解决
# cd /usr/src
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# tar -zvxf m4-1.4.9.tar.gz
# cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# 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
 
 
重新Phpize 继续

你可能感兴趣的:(PHP,api,Module,扩展,Zend,extension)