rebuilding configure
rebuilding main/php_config.h.in
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers.
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: bison is required to build PHP/Zend when building a GIT checkout!
Method 1: Install bison from default EPEL repo using the following command:
sudo yum -y install bison
# bison --version
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Method 2: You can compile the package from source to install latest version https://ftp.gnu.org/gnu/bison/
###Install GNU m4 from source
cd /tmp && sudo yum -y install wget gcc perl make
wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz
tar -xvzf m4-1.4.19.tar.gz
cd m4-1.4.19
./configure --prefix=/usr/local/m4
sudo make
sudo make install
###Install bsion from source
cd /tmp && wget https://ftp.gnu.org/gnu/bison/bison-3.8.tar.gz
tar -xvf bison-3.8.tar.gz
cd bison-3.8/
PATH=$PATH:/usr/local/m4/bin/
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
sudo make
sudo make install
ADVERTISEMENT
5/5 - (1 vote)