【原创】Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF ...

blogdaren 2015-12-19 抢沙发 2194人次

问题背景:

centos环境,编译PHP扩展时运行/path/to/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.

解决方法1:

yum install m4
yum install autoconf

解决方法2:

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 /usr/src
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

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF ...

发表评论:

您的昵称:
电子邮件:
个人主页:

Free Web Hosting