zephir_parser 扩展未加载

zephir_parser extension not loaded

我 运行 在 ubuntu 14.04 上安装了 php5.6。我正在尝试用 Zephir 做 Hello world 但是当我用 :

编译我的项目时
zephir build

我收到这个错误:

zephir_parser extension not loaded, compiling it
Parser statistics: 127 terminals, 99 nonterminals, 459 rules
                   947 states, 0 parser table entries, 0 conflicts
Parser statistics: 127 terminals, 99 nonterminals, 459 rules
                   947 states, 0 parser table entries, 0 conflicts
make: *** No rule to make target `clean'.  Stop.
Preparing for parser compilation...
sh: 1: phpize: not found
sh: 1: ./configure: not found
Compiling the parser...
make: *** No targets specified and no makefile found.  Stop.


PHP Warning:  copy(modules/zephir_parser.so): failed to open stream: No such file or directory in /root/zephir/Library/Compiler.php on line 282
Zephir\Exception: The zephir parser extension could not be found or compiled!

有什么想法吗?

编辑

我重新安装了这些软件包:

php5-json php5-dev libpcre3-dev

我试过这个命令行:

./bin/zephir compile

并且在编译时出现另一个错误:

Copying new kernel files...
PHP Fatal error:  Call to undefined function Zephir\utf8_decode() in /root/zephir/Library/Compiler.php on line 2202

我通过使用 libpcre3-dev 重新安装 php 解决了我的问题,并安装了这个:

apt-get install php5.6-xml

解决utf8_decode()

上的致命错误