configure: error: bison is required to build PHP/Zend when building a GIT checkout!

系统环境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,所以使用了切换版本。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值