Please note that Zephir is currently in the Alpha stage, and therefore errors can be expected.
It is necessary to install certain packages:
json-c re2c
At the command prompt, type:
sudo apt-get install libjson0 libjson0-dev libjson0-dbg sudo apt-get install re2c
After installing the necessary packages, you can generate the parser as follows:
./generate
Compile the extension (this is your code):
./zephir
The generated code is placed in ext /, where you can perform standard compilation:
cd ext/ sudo ./install
source share