yanqzh 发表于 2016-11-17 08:40:42

xcache安装错误

环境是centos7,lnmp1.3,php7,操作步骤如下:./addons.sh install xcache


返回错误:


creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
cc -I. -I/root/lnmp1.3-full/src/xcache-3.2.0 -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/xcache-3.2.0/include -I/root/lnmp1.3-full/src/xcache-3.2.0/main -I/root/lnmp1.3-full/src/xcache-3.2.0 -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-E /root/lnmp1.3-full/src/xcache-3.2.0/includes.c -o ./includes.i
./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it
LANG=C /bin/gawk -f /root/lnmp1.3-full/src/xcache-3.2.0/gen_structinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv ./structinfo.m4.tmp ./structinfo.m4
/bin/m4 -B 102400 -D srcdir='`'"/root/lnmp1.3-full/src/xcache-3.2.0'" -D builddir='`'".'"/root/lnmp1.3-full/src/xcache-3.2.0/processor/main.m4 > ./processor.out.c.tmp
/bin/m4: warning: `m4 -B' may be removed in a future release
AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
AUTOCHECK WARN: zend_compiled_variable: missing structinfo, dont panic
AUTOCHECK INFO: zend_try_catch_element: processor looks good
AUTOCHECK INFO: zend_brk_cont_element: processor looks good
AUTOCHECK ERROR: ==== calc HashTable =================
AUTOCHECK expected: "gc","u","nTableMask","arData","nNumUsed","nNumOfElements","nTableSize","nInternalPointer","nNextFreeElement","pDestructor"
AUTOCHECK missing : "gc" "u" "arData" "nNumUsed" "nInternalPointer"
AUTOCHECK ERROR: ==== calc zend_ast =================
AUTOCHECK expected: "kind","attr","lineno","child"
AUTOCHECK missing : "attr" "lineno" "child"
AUTOCHECK ERROR: ==== calc zval =================
AUTOCHECK expected: "value","u1","u2"
AUTOCHECK missing : "u1" "u2"
AUTOCHECK INFO: zend_arg_info: processor looks good
AUTOCHECK INFO: zend_constant: processor looks good
AUTOCHECK INFO: zend_property_info: processor looks good
AUTOCHECK INFO: zend_trait_method_reference: processor looks good
AUTOCHECK INFO: zend_trait_alias: processor looks good
AUTOCHECK INFO: zend_trait_precedence: processor looks good
AUTOCHECK INFO: zend_class_entry: processor looks good
AUTOCHECK ERROR: ==== calc znode =================
AUTOCHECK expected: "op_type","flag","u"
AUTOCHECK missing : "flag"
AUTOCHECK INFO: zend_op: processor looks good
AUTOCHECK WARN: zend_literal: missing structinfo, dont panic
AUTOCHECK ERROR: ==== calc zend_op_array =================
AUTOCHECK expected: "type","arg_flags","fn_flags","function_name","scope","prototype","num_args","required_num_args","arg_info","refcount","this_var","last","opcodes","last_var","T","vars","last_brk_cont","last_try_catch","brk_cont_array","try_catch_array","static_variables","filename","line_start","line_end","doc_comment","early_binding","last_literal","literals","cache_size","run_time_cache","reserved"
AUTOCHECK missing : "arg_flags" "cache_size"
AUTOCHECK INFO: xc_constinfo_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_detail_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_t: processor looks good
AUTOCHECK INFO: xc_funcinfo_t: processor looks good
AUTOCHECK INFO: xc_classinfo_t: processor looks good
AUTOCHECK INFO: xc_autoglobal_t: processor looks good
AUTOCHECK INFO: xc_compilererror_t: processor looks good
AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
AUTOCHECK INFO: xc_entry_t: processor looks good
AUTOCHECK INFO: xc_entry_php_t: processor looks good
AUTOCHECK INFO: xc_entry_var_t: processor looks good
AUTOCHECK ERROR: ==== store HashTable =================
AUTOCHECK ERROR: ==== store zend_ast =================
AUTOCHECK ERROR: ==== store zval =================
AUTOCHECK ERROR: ==== store znode =================
AUTOCHECK ERROR: ==== store zend_op_array =================
AUTOCHECK ERROR: ==== restore HashTable =================
AUTOCHECK ERROR: ==== restore zend_ast =================
AUTOCHECK ERROR: ==== restore zval =================
AUTOCHECK ERROR: ==== restore znode =================
AUTOCHECK ERROR: ==== restore zend_op_array =================
AUTOCHECK ERROR: ==== dprint HashTable =================
AUTOCHECK ERROR: ==== dprint zend_ast =================
AUTOCHECK ERROR: ==== dprint zval =================
AUTOCHECK ERROR: ==== dprint znode =================
AUTOCHECK ERROR: ==== dprint zend_op_array =================
AUTOCHECK ERROR: ==== dasm HashTable =================
AUTOCHECK ERROR: ==== dasm zend_ast =================
AUTOCHECK ERROR: ==== dasm zval =================
AUTOCHECK ERROR: ==== dasm znode =================
AUTOCHECK ERROR: ==== dasm zend_op_array =================
make: *** Error 1
/bin/m4 -B 102400 -D srcdir='`'"/root/lnmp1.3-full/src/xcache-3.2.0'" -D builddir='`'".'"/root/lnmp1.3-full/src/xcache-3.2.0/processor/main.m4 > ./processor.out.c.tmp
/bin/m4: warning: `m4 -B' may be removed in a future release
AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
AUTOCHECK WARN: zend_compiled_variable: missing structinfo, dont panic
AUTOCHECK INFO: zend_try_catch_element: processor looks good
AUTOCHECK INFO: zend_brk_cont_element: processor looks good
AUTOCHECK ERROR: ==== calc HashTable =================
AUTOCHECK expected: "gc","u","nTableMask","arData","nNumUsed","nNumOfElements","nTableSize","nInternalPointer","nNextFreeElement","pDestructor"
AUTOCHECK missing : "gc" "u" "arData" "nNumUsed" "nInternalPointer"
AUTOCHECK ERROR: ==== calc zend_ast =================
AUTOCHECK expected: "kind","attr","lineno","child"
AUTOCHECK missing : "attr" "lineno" "child"
AUTOCHECK ERROR: ==== calc zval =================
AUTOCHECK expected: "value","u1","u2"
AUTOCHECK missing : "u1" "u2"
AUTOCHECK INFO: zend_arg_info: processor looks good
AUTOCHECK INFO: zend_constant: processor looks good
AUTOCHECK INFO: zend_property_info: processor looks good
AUTOCHECK INFO: zend_trait_method_reference: processor looks good
AUTOCHECK INFO: zend_trait_alias: processor looks good
AUTOCHECK INFO: zend_trait_precedence: processor looks good
AUTOCHECK INFO: zend_class_entry: processor looks good
AUTOCHECK ERROR: ==== calc znode =================
AUTOCHECK expected: "op_type","flag","u"
AUTOCHECK missing : "flag"
AUTOCHECK INFO: zend_op: processor looks good
AUTOCHECK WARN: zend_literal: missing structinfo, dont panic
AUTOCHECK ERROR: ==== calc zend_op_array =================
AUTOCHECK expected: "type","arg_flags","fn_flags","function_name","scope","prototype","num_args","required_num_args","arg_info","refcount","this_var","last","opcodes","last_var","T","vars","last_brk_cont","last_try_catch","brk_cont_array","try_catch_array","static_variables","filename","line_start","line_end","doc_comment","early_binding","last_literal","literals","cache_size","run_time_cache","reserved"
AUTOCHECK missing : "arg_flags" "cache_size"
AUTOCHECK INFO: xc_constinfo_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_detail_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_t: processor looks good
AUTOCHECK INFO: xc_funcinfo_t: processor looks good
AUTOCHECK INFO: xc_classinfo_t: processor looks good
AUTOCHECK INFO: xc_autoglobal_t: processor looks good
AUTOCHECK INFO: xc_compilererror_t: processor looks good
AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
AUTOCHECK INFO: xc_entry_t: processor looks good
AUTOCHECK INFO: xc_entry_php_t: processor looks good
AUTOCHECK INFO: xc_entry_var_t: processor looks good
AUTOCHECK ERROR: ==== store HashTable =================
AUTOCHECK ERROR: ==== store zend_ast =================
AUTOCHECK ERROR: ==== store zval =================
AUTOCHECK ERROR: ==== store znode =================
AUTOCHECK ERROR: ==== store zend_op_array =================
AUTOCHECK ERROR: ==== restore HashTable =================
AUTOCHECK ERROR: ==== restore zend_ast =================
AUTOCHECK ERROR: ==== restore zval =================
AUTOCHECK ERROR: ==== restore znode =================
AUTOCHECK ERROR: ==== restore zend_op_array =================
AUTOCHECK ERROR: ==== dprint HashTable =================
AUTOCHECK ERROR: ==== dprint zend_ast =================
AUTOCHECK ERROR: ==== dprint zval =================
AUTOCHECK ERROR: ==== dprint znode =================
AUTOCHECK ERROR: ==== dprint zend_op_array =================
AUTOCHECK ERROR: ==== dasm HashTable =================
AUTOCHECK ERROR: ==== dasm zend_ast =================
AUTOCHECK ERROR: ==== dasm zval =================
AUTOCHECK ERROR: ==== dasm znode =================
AUTOCHECK ERROR: ==== dasm zend_op_array =================
make: *** Error 1
XCache install failed!

licess 发表于 2016-11-17 10:26:20

xcache早就很久不更新了还不支持php7

yanqzh 发表于 2016-11-17 17:44:38

mediawiki,wordpress用什么缓存扩展来代替呢?我开了memcached,mediawiki貌似用不上,之前用xcache秒开,现在要延迟一秒

licess 发表于 2016-11-17 18:25:38

回复 3# 的帖子

wordpress上基本上所有的缓存类工具都有对应的插件,mediawiki不清楚,不行就退回到 5.*

yanqzh 发表于 2016-11-17 20:33:29

memcached安装似乎并没有启用生效。

旧服务器使用xcache,memdiawiki及wordpress都是甫一点击即刻进入页面,现在即有一秒到两秒的延迟。

PS:新服务器本来是为moodle而建,旧服务器上moodle打开页面一般需要数秒,在新服务器上是甫一点击链接即刻打开。可见应该是opcache生效并应用成功。

wordpress已经下载opcache插件,但是效果不明显,点击链接仍旧需要一两秒时间才能打开页面。

yanqzh 发表于 2016-11-17 20:41:46

回复 4# 的帖子

如何查看并确保memcached是安装成功并启用了的?

yanqzh 发表于 2016-11-17 20:56:47

从p.php查看,发现:

Cache化内存为 0.655 GB , 使用率 17.69 %        | Buffers缓冲为 0.102 GB
真实内存使用 2.436 GB , 真实内存空闲 1.266 GB , 使用率 65.8 %

cache化内存使用率太低,如何提高?

licess 发表于 2016-11-18 09:11:53

回复 6# 的帖子

常见问题里有说明

可以调高一些程序的设置试试
页: [1]
查看完整版本: xcache安装错误