VPS侦探论坛

 找回密码
 注册
查看: 4469|回复: 5

ubuntu 14.04 lnmp1.2 安装 memcached报错,跪求解决方法

[复制链接]
发表于 2015-7-6 14:38:41 | 显示全部楼层 |阅读模式

ubuntu 14.04  lnmp1.2 安装 memcached报错,跪求解决方法/usr/local/php/include/php/Zend/zend_API.h:302:14: note: expected ?.har *?.but argument is of type ?.onst char *?
ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate);
              ^
make: *** [php_memcached.lo] Error 1
Copy Memcached PHP Test file...
Restarting Apache......
restart apache...  done
Starting Memcached...
Starting memcached:  done
Memcached install failed!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-7-6 17:39:06 | 显示全部楼层


phpmemcached需要比较多的依赖,信息有限,需要全部的安装日志才能确定
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-6 19:02:33 | 显示全部楼层

日志已上传,请帮忙看下Ubuntu 14.04      lamp

本帖子中包含更多资源

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

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

回复 3# 的帖子




网上看到一个说是cd /root/lnmp1.2-full/src/memcached-2.2.0/
然后编辑php_libmemcached_compat.h 添加上typedef const struct memcached_server_st *memcached_server_instance_st;
然后再/usr/local/php/bin/phpize
    ./configure --with-php-config=/usr/local/php/bin/php-config --enable-memcached --with-libmemcached-dir=/usr/local/libmemcached
    make && make install
试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-6 21:48:25 | 显示全部楼层

回复 4# 的帖子


/root/lnmp1.2-full/src/memcached-2.2.0/php_memcached.c: In function ?.hp_memc_do_result_callback?.
/root/lnmp1.2-full/src/memcached-2.2.0/php_memcached.c:3675:2: warning: passing argument 4 of ?.dd_assoc_stringl_ex?.discards ?.onst?.qualifier from pointer target type [enabled by default]
  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.2-full/src/memcached-2.2.0/php_memcached.h:22,
                 from /root/lnmp1.2-full/src/memcached-2.2.0/php_memcached.c:25:
/usr/local/php/include/php/Zend/zend_API.h:302:14: note: expected ?.har *?.but argument is of type ?.onst char *?
ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate);
              ^
make: *** [php_memcached.lo] Error 1

悲剧,....还是不行...

军哥运维代购:http://shop63846532.taobao.com/

发表于 2015-7-7 08:35:41 | 显示全部楼层

那就无解了,只能找他们官方反馈看看什么原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-26 10:35 , Processed in 0.034829 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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