2016-04-15 134 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 –