CentOS下zephir安装记录

1.安装json-c

1
2
3
4
5
6
git clone https://github.com/json-c/json-c.git or https://github.com/phalcon/json-c
cd json-c
./autogen.sh
./configure
make
make install

2.安装re2c

1
2
3
4
wget https://github.com/skvadrik/re2c/releases/download/0.16/re2c-0.16.tar.gz
tar zxf re2c-0.16.tar.gz
cd /usr/bin
ln -s /usr/local/bin/re2c re2c

3.安装php

1
yum install git gcc make re2c php5 php5-json php5-dev libpcre3-dev

注意:
不能禁止exec \shell_exec \ passthru函数