这是本人整理全手打的,如对你有帮助请点赞支持一下!
当你执行 /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
然后再重新执行上一篇的方法即可。