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

问题描述 投票:-1回答:1

在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

怎么解决这个?

php ubuntu-16.04 pecl
1个回答
-1
投票

这对我来说运作得很好:

sudo pecl install apcu

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

© www.soinside.com 2019 - 2024. All rights reserved.