lnmp1.6 memcached安装失败
环境 CentOS Linux release 7.6.1810 (Core) 内核 :3.10.0-957.el7.x86_64安装memcached报错,香港的服务器,自己搭建的虚拟 机,都安装报错。
把lnmp1.6卸载,然后安装lnmp1.5也同样报错。
^
In file included from /usr/local/php/include/php/Zend/zend.h:681:0,
from /usr/local/php/include/php/main/php.h:34,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.h:22,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:25:
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:343:49: error: ‘zend_fcall_info’ has no member named ‘object_ptr’
spprintf (&buffer, 0, "%s::%s", Z_OBJCE_P (fci->object_ptr)->name, fci_cache->function_handler->common.function_name);
^
/usr/local/php/include/php/Zend/zend_operators.h:378:48: note: in definition of macro ‘Z_OBJCE’
#define Z_OBJCE(zval) zend_get_class_entry(&(zval) TSRMLS_CC)
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:343:35: note: in expansion of macro ‘Z_OBJCE_P’
spprintf (&buffer, 0, "%s::%s", Z_OBJCE_P (fci->object_ptr)->name, fci_cache->function_handler->common.function_name);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘php_memc_getMulti_impl’:
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:751:5: warning: passing argument 2 of ‘add_assoc_null_ex’ discards ‘const’ qualifier from pointer target type
add_assoc_null_ex(return_value, mkeys, mkeys_len + 1);
^
In file included from /usr/local/php/include/php/main/php.h:38:0,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.h:22,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:25:
/usr/local/php/include/php/Zend/zend_API.h:297:14: note: expected ‘char *’ but argument is of type ‘const char *’
ZEND_API int add_assoc_null_ex(zval *arg, char *key, uint key_len);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_fetch’:
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:1067:2: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards ‘const’ qualifier from pointer target type
add_assoc_stringl_ex(return_value, ZEND_STRS("key"), res_key, res_key_len, 1);
^
In file included from /usr/local/php/include/php/main/php.h:38:0,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.h:22,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:25:
/usr/local/php/include/php/Zend/zend_API.h:302:14: note: expected ‘char *’ but argument is of type ‘const char *’
ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_fetchAll’:
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:1126:3: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards ‘const’ qualifier from pointer target type
add_assoc_stringl_ex(entry, ZEND_STRS("key"), res_key, res_key_len, 1);
^
In file included from /usr/local/php/include/php/main/php.h:38:0,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.h:22,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:25:
/usr/local/php/include/php/Zend/zend_API.h:302:14: note: expected ‘char *’ but argument is of type ‘const char *’
ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_getLastErrorMessage’:
/usr/local/php/include/php/Zend/zend_API.h:465:13: warning: initialization discards ‘const’ qualifier from pointer target type
char *__s=(s); \
^
/usr/local/php/include/php/Zend/zend_API.h:510:39: note: in expansion of macro ‘ZVAL_STRING’
#define RETVAL_STRING(s, duplicate) ZVAL_STRING(return_value, s, duplicate)
^
/usr/local/php/include/php/Zend/zend_API.h:522:40: note: in expansion of macro ‘RETVAL_STRING’
#define RETURN_STRING(s, duplicate){ RETVAL_STRING(s, duplicate); return; }
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:2144:2: note: in expansion of macro ‘RETURN_STRING’
RETURN_STRING(memcached_last_error_message(m_obj->memc), 1);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_getResultMessage’:
/usr/local/php/include/php/Zend/zend_API.h:465:13: warning: initialization discards ‘const’ qualifier from pointer target type
char *__s=(s); \
^
/usr/local/php/include/php/Zend/zend_API.h:510:39: note: in expansion of macro ‘ZVAL_STRING’
#define RETVAL_STRING(s, duplicate) ZVAL_STRING(return_value, s, duplicate)
^
/usr/local/php/include/php/Zend/zend_API.h:522:40: note: in expansion of macro ‘RETVAL_STRING’
#define RETURN_STRING(s, duplicate){ RETVAL_STRING(s, duplicate); return; }
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:2799:4: note: in expansion of macro ‘RETURN_STRING’
RETURN_STRING(memcached_strerror(m_obj->memc, (memcached_return)i_obj->rescode), 1);
^
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c: In function ‘php_memc_do_result_callback’:
/root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:3675:2: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards ‘const’ qualifier from pointer target type
add_assoc_stringl_ex(z_result, ZEND_STRS("key"), res_key, res_key_len, 1);
^
In file included from /usr/local/php/include/php/main/php.h:38:0,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.h:22,
from /root/lnmp1.6-full/src/memcached-2.2.0/php_memcached.c:25:
/usr/local/php/include/php/Zend/zend_API.h:302:14: note: expected ‘char *’ but argument is of type ‘const char *’
ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate);
^
make: *** Error 1
Copy Memcached PHP Test file...
Restarting php-fpm......
Shutting down php_fpm . done
Starting php_fpm PHP Warning:PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcached.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
done
iptables: Bad rule (does a matching rule exist in that chain?).
Starting Memcached...
Starting memcached:done
Memcached install failed!
我把报错代码贴上来了,好像是编译的时候,缺少某个组件,导致了问题。请军哥指点。附件中上传了比较长的错误 日志。
LNMP1.5安装同样报错,感觉有什么插件未安装一样。 有可能兼容性问题,如果要使用php 5.2的话尽量使用低版本的系统版本 licess 发表于 2020-3-17 08:50
有可能兼容性问题,如果要使用php 5.2的话尽量使用低版本的系统版本
我有一台同样的,是国内的服务器,安装没问题。我也不知道什么鬼。同样的centos7.6的系统。
页:
[1]