怎样安装re2c

2019年4月12日 | 分类: 【技术】

【介绍】

官网:http://re2c.org/

手册:http://re2c.org/install/install.html

【yum安装RPM包】

yum install https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/re2c-0.14.3-2.el7.x86_64.rpm

【安装(git源码编译)】

git clone https://git.code.sf.net/p/re2c/code-git re2c && cd re2c/
./autogen.sh && ./configure --prefix=/usr/local/re2c/
make && make install
ln -sf /usr/local/re2c/bin/re2c /usr/local/bin/re2c
re2c -v
re2c -h
git clone https://github.com/skvadrik/re2c.git re2c && cd re2c
./autogen.sh && ./configure
make && make install

【安装(源码编译)】

wget https://sourceforge.net/projects/re2c/files/0.16/re2c-0.16.tar.gz && tar zxf re2c-0.16.tar.gz && cd re2c-0.16
./configure && make && make install

【排错】

报错:configure: WARNING: You will need re2c 0.13.4 or later

当编译 PHP 时,报错。

参考:https://www.cnblogs.com/daimajie/p/6679111.html
参考:https://blog.csdn.net/a454213722/article/details/51866100
参考:https://hanxv.cn/archives/138.html
参考:https://blog.csdn.net/steven_liwen/article/details/52046054

报错:configure: error: re2c 0.13.4 is required to generate PHP lexers.

从git编译 php 7.4 ,configure时报错: