VPS侦探论坛

 找回密码
 注册
查看: 3172|回复: 2

LNMP1.3安装Memcached出现错误

[复制链接]
发表于 2017-5-3 18:02:21 | 显示全部楼层 |阅读模式

系统CentOS6.9 Linux localhost.localdomain 2.6.32-696.1.1.el6.x86_64 #1 SMP Tue Apr 11 17:13:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
安装lnmpa=nginx+apache2.2+php5.2.17+mysql5.1.73,之后安装memcached报错!以下是报错日志!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-5-3 18:18:20 | 显示全部楼层

回复 1# 的帖子



ps aux|grep memcached
root      53825  0.0  0.0 331116  1092 ?        Ssl  17:42   0:00 /usr/local/memcached/bin/memcached -d -l 127.0.0.1 -p 11211 -u root -m 64 -c 1024 -P /var/run/memcached.pid
root     102858  0.0  0.0 103328   884 pts/0    S+   18:13   0:00 grep memcached

[root@localhost ~]# rpm -qa|grep cyrus-sasl-devel
cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-5-3 20:22:57 | 显示全部楼层

-DPIC -o .libs/php_memcached.o
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘php_memc_printable_func’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:342: error: ‘zend_fcall_info’ has no member named ‘object_ptr’
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:343: error: ‘zend_fcall_info’ has no member named ‘object_ptr’
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘php_memc_getMulti_impl’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:751: warning: passing argument 2 of ‘add_assoc_null_ex’ discards qualifiers from pointer target type
/usr/local/php/include/php/Zend/zend_API.h:297: note: expected ‘char *’ but argument is of type ‘const char *’
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_fetch’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:1067: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
/usr/local/php/include/php/Zend/zend_API.h:302: note: expected ‘char *’ but argument is of type ‘const char *’
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_fetchAll’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:1126: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
/usr/local/php/include/php/Zend/zend_API.h:302: note: expected ‘char *’ but argument is of type ‘const char *’
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_getLastErrorMessage’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:2144: warning: initialization discards qualifiers from pointer target type
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘zim_Memcached_getResultMessage’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:2799: warning: initialization discards qualifiers from pointer target type
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c: In function ‘php_memc_do_result_callback’:
/root/lnmp1.3-full/src/memcached-2.2.0/php_memcached.c:3675: warning: passing argument 4 of ‘add_assoc_stringl_ex’ discards qualifiers from pointer target type
/usr/local/php/include/php/Zend/zend_API.h:302: note: expected ‘char *’ but argument is of type ‘const char *’
make: *** [php_memcached.lo] Error 1

按错误信息看这个是很久之前就已经存在的php-memcached扩展在php 5.2下的bug,一定要在php 5.2下用php-memcached的话就尝试降低php-memcached的版本,将你想要的版本下载到lnmp安装包目录的src目录下,并修改 include/version.sh 中PHPMemcached_Ver的版本
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 05:54 , Processed in 0.026060 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表