1

我在 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
4

1 回答 1

1

我通过重新安装 phplibpcre3-dev并安装它解决了我的问题:

apt-get install php5.6-xml

解决 utf8_decode() 上的致命错误

于 2016-09-05T11:50:08.510 回答