phpize报cannot find autoconf

突然想往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文件。

posted @ 2015-11-14 23:13  joshua317  阅读(1565)  评论(0编辑  收藏  举报