- 积分
- 63
- 威望
-
- 金钱
-
- 注册时间
- 2016-2-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-2-10 13:04:20
|
显示全部楼层
回复 2# 的帖子
这2个问题搞定啦!谢谢军哥
但是在为owncloud 安装apcu时 出现问题了,百度 google 论坛无果!!
根据这篇教程 https://www.vpser.net/manage/lnmp-php-install-ext.html 进行的安装
我先在https://github.com/krakjoe/apcu 下载的apcu
然后
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
在make && make install时出错。。显示 make: *** [apc.lo] Error 1 【完整错误信息放在帖子后】
然后我google一圈 yum install pcre-devel 后 也是那个错误!实在无能为力了!
【完整错误】
[root@iZ28f5evvmgZ apcu]# make
/bin/sh /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/libtool --mode=compile cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/include -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/main -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c -o apc.lo
cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/include -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/main -I/root/lnmp1.3-full/src/php-5.6.22/ext/apcu -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c -fPIC -DPIC -o .libs/apc.o
In file included from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_sma.h:34,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_pool.h:33,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache.h:36,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:35:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_sma_api.h:46: error: expected specifier-qualifier-list before ‘zend_long’
In file included from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_pool.h:36,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache.h:36,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:35:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_pool_api.h:142: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_pool_api.h:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache.h:40,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:35:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:44: error: expected specifier-qualifier-list before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:53: error: expected specifier-qualifier-list before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:67: error: expected specifier-qualifier-list before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:82: error: expected specifier-qualifier-list before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:101: error: expected specifier-qualifier-list before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:139: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:140: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:141: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:142: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:216: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:223: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:230: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:236: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:245: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:250: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:272: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:290: error: expected declaration specifiers or ‘...’ before ‘zend_string’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:390: error: expected declaration specifiers or ‘...’ before ‘zend_long’
In file included from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache.h:40,
from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:35:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_cache_api.h:390: error: expected declaration specifiers or ‘...’ before ‘zend_long’
In file included from /root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:36:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc_globals.h:44: error: expected specifier-qualifier-list before ‘zend_long’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:41:31: error: zend_smart_str.h: No such file or directory
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c: In function ‘apc_flip_hash’:
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:336: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:336: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:338:61: error: macro "zend_hash_update" requires 6 arguments, but only 3 given
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:338: error: ‘zend_hash_update’ undeclared (first use in this function)
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:338: error: (Each undeclared identifier is reported only once
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:338: error: for each function it appears in.)
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:340:68: error: macro "zend_hash_index_update" requires 5 arguments, but only 3 given
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:340: error: ‘zend_hash_index_update’ undeclared (first use in this function)
/root/lnmp1.3-full/src/php-5.6.22/ext/apcu/apc.c:345: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
make: *** [apc.lo] Error 1 |
|