首页 > Web开发 > 详细

phpize报cannot find autoconf

时间:2015-11-15 00:45:09      阅读:331      评论:0      收藏:0      [点我收藏+]

突然想往php种增加个模块,可是又不想重新编译php,因为真的比较费时间。

phpize就可以解决这个问题。

遇到的问题:

Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

 

google了下,解决方法如下:安装autoconf

sudo yum install autoconfig

 

解决方法:

cd到php的源代码目录

比如需要追加swoole模块,进入swoole目录。

tar -zxvf swoole-1.7.19-stable.tar.gz #解压
cd swoole-src-swoole-1.7.19-stable/ #进入目录

phpize #执行phpize(/server/php/bin/phpize)

再次执行phpize没有报错。

[vagrant@rs-1 mysqli]$ phpize

Configuring for:

PHP Api Version:         20121113

Zend Module Api No:      20121212

Zend Extension Api No:   220121212

发现在当前目录下生成了 configure文件。

phpize报cannot find autoconf

原文:http://www.cnblogs.com/joshua317/p/4965856.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!