您的位置:首页 > 运维架构 > Linux

CentOS 6.5 WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

2018-01-23 15:41 2326 查看
环境:CentOS 6.5 64bit

PHP版本:5.3.3

在安装php geoip扩展时,执行./configure后有WARNING:

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

看来需要升级re2c到版本至少:0.13.4

re2c的介绍:http://re2c.org/

下载源代码安装:

[root@localhost Downloads]# wget https://sourceforge.net/projects/re2c/files/0.16/re2c-0.16.tar.gz --no-check-certificate

[root@localhost Downloads]# tar zxvf re2c-0.16.tar.gz

[root@localhost Downloads]# cd re2c-0.16

[root@localhost re2c-0.16]# ./configure

[root@localhost re2c-0.16]# make

[root@localhost re2c-0.16]# make install

检查安装:

[root@localhost re2c-0.16]# whereis re2c
re2c: /usr/local/bin/re2c

[root@localhost re2c-0.16]# re2c --version
re2c 0.16


再次安装php geoip扩展时,执行./configure后,不再有WARNING。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐