简体   繁体   English

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

[英]pecl install apc gives me Makefile:195: recipe for target 'apc.lo' failed

On an Ubuntu 16.04.6 LTS box sudo pecl install apc fails with:在 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

How to resolve this?如何解决这个问题?

This worked well enough for me:这对我来说效果很好:

sudo pecl install apcu

" APCu is APC stripped of opcode caching." APCu是剥离了操作码缓存的 APC。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM