您的位置:首页 > 编程语言 > PHP开发

phpize 编译安装php扩展的时候出现Cannot find autoconf的解决方法

2017-01-05 18:55 886 查看
这是本人整理全手打的,如对你有帮助请点赞支持一下!

当你执行 /home/huoweijie/package/php-7.1.0/scripts/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.

这个时候不要着急,出现这个问题的人挺多的。  按我下面的步骤走一遍即可完美解决。

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

然后再重新执行上一篇的方法即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: