我在ubuntu 14.04上运行,我安装了php5.6。我试图用Zephir来做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
答案 0 :(得分:1)
我通过使用libpcre3-dev
重新安装php解决了我的问题并安装了这个:
apt-get install php5.6-xml
解决utf8_decode()
上的致命错误