Php pecl安装apc为我提供了Makefile:195:recipe for target';apc.lo';失败

Php pecl安装apc为我提供了Makefile:195:recipe for target';apc.lo';失败,php,ubuntu-16.04,pecl,Php,Ubuntu 16.04,Pecl,在Ubuntu16.04.6 LTS盒上,sudo pecl安装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_pt

在Ubuntu16.04.6 LTS盒上,sudo pecl安装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

如何解决这个问题?

这对我来说已经足够好了:

sudo pecl install apcu

“APC没有操作码缓存。”

看起来APC与您当前的PHP版本不兼容。你知道,一个是2012年的,另一个是2016年的。为什么要安装apc?我的问题出了什么问题?我想为我未来的自己和任何遇到这个问题的人保存这些信息。这还不够详细吗?