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

时间:2019-02-26 17:45:12

标签: php ubuntu-16.04 pecl

在Ubuntu 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 个答案:

答案 0 :(得分:-1)

这对我来说足够好了

sudo pecl install apcu

APCu被APC剥离了操作码缓存。”