Skip to content

Commit 14b0d5e

Browse files
committed
1 parent 3534f38 commit 14b0d5e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

build.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ sudo apt-get install -y \
88
pkg-config \
99
git-core \
1010
autoconf \
11-
bison \
1211
libxml2-dev \
1312
libbz2-dev \
1413
libmcrypt-dev \
@@ -22,6 +21,26 @@ sudo apt-get install -y \
2221
libreadline-dev \
2322
re2c
2423

24+
25+
# https://bugs.php.net/bug.php?id=69055
26+
sudo apt-get purge bison
27+
28+
sudo apt-get install -y build-essential m4
29+
30+
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz
31+
tar -xvf bison-2.7.tar.gz
32+
rm bison-2.7.tar.gz
33+
cd bison-2.7
34+
35+
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
36+
37+
make
38+
sudo make install
39+
40+
sudo ln -sf /usr/local/bison/bin/bison /usr/bin/bison
41+
sudo ln -sf /usr/local/bison/bin/yacc /usr/bin/yacc
42+
43+
2544
sudo mkdir /usr/local/php5
2645

2746
git clone https://github.com/php/php-src.git

0 commit comments

Comments
 (0)