pecl install apc 给我 Makefile:195: 目标‘apc.lo’的配方失败

pecl install apc 给我 Makefile:195: 目标‘apc.lo’的配方失败

在 16.04.6 LTS 盒子上sudo pecl install apc出现故障:

/usr/include/php/20151012/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/APC/apc.c:711:5: note: in expansion of macro ‘zval_ptr_dtor’
     zval_ptr_dtor(&data);
     ^
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
Makefile:195: recipe for target 'apc.lo' failed
make: *** [apc.lo] Error 1
ERROR: `make' failed

如何解决这个问题?

答案1

请尝试以下操作:

sudo pecl install apcu

相关内容