php新增模块排错

回复 收藏
本帖最后由 smiock 于 2015-12-22 22:22 编辑

在执行:/usr/local/php/bin/phpize报错如下:Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


根据提示,找不到文件autoconf。
百度了下并写下解决方案。以便后续方便解决问题。
1:cd /usr/local/src/
2:wget http://ftp.gnu.org/gnu/m4/m4-1.4.2.tar.gz  (源地址:http://ftp.gnu.org/gnu/m4/)
3:tar -zxvf m4-1.4.2.tar.gz
4: cd m4-1.4.2
5:./configure
6:make
7:make install
8:cd /usr/local/src
9: wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz    (源地址:http://ftp.gnu.org/gnu/autoconf/)
10:tar zxvf autoconf-2.69.tar.gz
11:cd autoconf-2.69
12:./configure
13:make
14:make install


问题解决。
1.jpg

问题二:
编译安装报错:./configure --with-php-config=/usr/local/php/bin/php-config
错误:
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in /include/curl/
curl的dev包没有安装
解决:yum -y install curl-devel  



2015-12-22 22:17 举报
已邀请:
0

lyhabc

赞同来自:

谢谢分享,php是需要依赖curl的
libcurl
curl-devel

回复帖子,请先登录注册

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