系统环境mac
编译php,在执行./configure --disable-all的时候报错
configure: error: bison is required to build PHP/Zend when building a GIT checkout!
我执行了brew install bison并成功安装了bison3.1
可是在我重新执行的时候,我发现
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
checking for re2c... re2c
checking for re2c version... 1.1.1 (ok)
configure: error: bison is required to build PHP/Zend when building a GIT checkout!
其实还是没过去。参考这里,最后执行了
brew switch bison 3.1
因为我安装了3.1但是显示的却是2.3,所以使用了切换版本。