您的位置:首页 > 编程语言 > PHP开发

phpize报cannot find autoconf

2015-11-14 23:13 656 查看
突然想往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文件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: