2016-04-15 77 views
1
checking for bison version... invalid 
configure: WARNING: This bison version is not 
      supported for regeneration of the Zend/PHP parsers 
      (found: 3.0, min: 204, excluded: 3.0). 

试过安装PHP7和PHP5.6,我使用的是Debian 8.4/Jessie,我需要降级吗?编译PHP - bison版本?

回答

1

以下是PHP build notes列出的要求:

bison: 
PHP 5.4: 1.28, 1.35, 1.75, 1.875, 2.0, 2.1, 2.2, 2.3, 2.4, 2.4.1, 2.4.2, 2.4.3, 2.5, 2.5.1, 2.6, 2.6.1, 2.6.2, 2.6.4 
PHP 5.5: 2.4, 2.4.1, 2.4.2, 2.4.3, 2.5, 2.5.1, 2.6, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7 
PHP 5.6: 2.4 or later, excluding 3.0 only (3.0.1 and later are OK) 
PHP 7.0: 2.4 or later 
+0

感谢仰视版本。我的野牛版本是'野牛(GNU Bison)3.0.2',它不适用于PHP 7和PHP 5.6。 – DanFromGermany

+0

恩,。我不会提供更多的帮助,因为我自己并没有为自己构建PHP多年,但是检查dotdeb的回购可能会有帮助:https://github.com/gplessis/dotdeb-php –