在 mac 中编译 php-src.git 报错:
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ). configure: error: bison is required to build PHP/Zend when building a GIT checkout!
使用下面的方式未果:
env LDFLAGS='-L/usr/local/opt/bison27/lib' ./configure --disable-all # 或者 export LDFLAGS=-L/usr/local/opt/bison27/lib
添加 YACC 成功编译:
YACC=/usr/local/opt/bison27/bin/bison ./configure --disable-all
参考自:
https://bugs.php.net/bug.php?id=71343