LNMP1.3安装Memcached出现错误
系统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报错!以下是报错日志!
回复 1# 的帖子
ps aux|grep memcachedroot 538250.00.0 3311161092 ? Ssl17: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 1028580.00.0 103328 884 pts/0 S+ 18:13 0:00 grep memcached
# rpm -qa|grep cyrus-sasl-devel
cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64 -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: *** Error 1
按错误信息看这个是很久之前就已经存在的php-memcached扩展在php 5.2下的bug,一定要在php 5.2下用php-memcached的话就尝试降低php-memcached的版本,将你想要的版本下载到lnmp安装包目录的src目录下,并修改 include/version.sh 中PHPMemcached_Ver的版本
页:
[1]