我在ubuntu14.04上运行,并安装了php5.6。我试图用泽皮尔来完成Hello,但是当我用以下方法编译我的项目时:
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发布于 2016-09-05 11:50:08
我通过使用libpcre3-dev重新安装php解决了我的问题,并安装如下:
apt-get install php5.6-xml解决utf8_decode()上的致命错误
https://stackoverflow.com/questions/39327467
复制相似问题