在编译PHP动态模块的时候报错的解决方案

回复 收藏
这个报错老师都没有遇到,但是凑巧碰到了,希望碰到的同学也知道一下,如果:
运行/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就轻松搞定了
小伙伴们注意啦



2015-12-20 22:07 举报
已邀请:
0

lyhabc

赞同来自:

未遇到过,不知道你php什么版本  

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: