You are not logged in.

#1 2014-10-05 21:18:46

x-yuri
Member
Registered: 2013-01-06
Posts: 160

[SOLVED] Installing php 5.3 requires bison<3

Hi,

I'm trying to install php-5.3 side-by-side with system version. For that I'm using phpenv + php-build. But here's what I get:

$ phpenv install 5.3.29
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.3.29 into /home/yuri/.phpenv/versions/5.3.29
[Downloading]: http://php.net/distributions/php-5.3.29.tar.bz2
[Preparing]: /tmp/php-build/source/5.3.29

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 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 (found: 3.0.2).
configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
-----------------------------------------

The full Log is available at '/tmp/php-build.5.3.29.20141005234955.log'.
[Warn]: Aborting build.

I can supposedly fix everything except for bison being too new. Is there any workaround?

UPD I just thought of building bison from sources w/o installing it (no make install) and trying to feed this bison to php-build in one way or another, just a rough idea...

UPD It must be not really an issue, it's just a warning.

Last edited by x-yuri (2014-10-11 07:46:22)

Offline

Board footer

Powered by FluxBB