【发布时间】:2020-09-06 10:38:16
【问题描述】:
我正在尝试安装 rar 包。我检查了 php.net 的安装文档,它只是说执行 pecl -v install rar
/tmp/pear/temp/rar/rararch.c:34: note: this is the location of the previous definition
#define _GNU_SOURCE
/tmp/pear/temp/rar/rararch.c: In function ‘rararch_it_get_iterator’:
/tmp/pear/temp/rar/rararch.c:961:25: error: ‘zend_class_entry’ {aka ‘struct _zend_class_entry’} has no member named ‘iterator_funcs’; did you mean ‘iterator_funcs_ptr’?
it->parent.funcs = ce->iterator_funcs.funcs;
^~~~~~~~~~~~~~
iterator_funcs_ptr
/tmp/pear/temp/rar/rararch.c: In function ‘minit_rararch’:
/tmp/pear/temp/rar/rararch.c:1173:18: error: ‘zend_class_entry’ {aka ‘struct _zend_class_entry’} has no member named ‘iterator_funcs’; did you mean ‘iterator_funcs_ptr’?
rararch_ce_ptr->iterator_funcs.funcs = &rararch_it_funcs;
^~~~~~~~~~~~~~
iterator_funcs_ptr
make: *** [Makefile:198: rararch.lo] Error 1
rolling back 441 file operations
ERROR: `make' failed
如何在 debian 10 上使用 php 7.3 安装 rar 扩展?
【问题讨论】:
-
也许这回答了你的问题stackoverflow.com/questions/17285306/…
-
@AmineKOUIS 我看到了这个问题,但在第二步中,当我想要安装 rar(在制作步骤中)时出现上述错误
-
可能会更新 autoconf、make 和 pecl