这个报错老师都没有遇到,但是凑巧碰到了,希望碰到的同学也知道一下,如果:
运行/usr/local/webserver/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. Then, rerun this script.
这说明没有autoconf这个文件,需要下载,如下:
# cd /usr/src
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz
# tar -zvxf m4-1.4.17.tar.gz
# cd m4-1.4.17/
# ./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
当然还有很简单的办法,
yum install m4
yum install autoconf
如果后面配置的时候遇到了以下报错
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
用 yum install curl curl-devel就轻松搞定了
小伙伴们注意啦
运行/usr/local/webserver/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. Then, rerun this script.
这说明没有autoconf这个文件,需要下载,如下:
# cd /usr/src
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz
# tar -zvxf m4-1.4.17.tar.gz
# cd m4-1.4.17/
# ./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
当然还有很简单的办法,
yum install m4
yum install autoconf
如果后面配置的时候遇到了以下报错
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
用 yum install curl curl-devel就轻松搞定了
小伙伴们注意啦
编辑回复