在安装memcached后,安装memcached gem时会出现如下问题,解决方法如下:
- 在ruby/gems/1.8/gems/目录下删除memcached的安装目录memcached-1.2.5,有网友说使用gem uninstall memcached删除,但是我试用没有成功
- sudo apt-get install libmemcached-dev libsasl2-dev libmemcached-dbg
- sudo gem install memcached
sudo gem install memcached
Building native extensions. This could take a while…
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby extconf.rb
Libmemcached already built; run ‘rake clean’ first if you need to rebuild.
creating Makefile
make
gcc -I. -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/x86_64-linux -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/x86_64-linux -I. -fPIC -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/include -L/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/lib -g -O2 -g -O2 -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_sasl_callbacks_set’:
rlibmemcached_wrap.c:6678: error: ‘sasl_callback_t’ undeclared (first use in this function)
rlibmemcached_wrap.c:6678: error: (Each undeclared identifier is reported only once
rlibmemcached_wrap.c:6678: error: for each function it appears in.)
rlibmemcached_wrap.c:6678: error: ‘arg2’ undeclared (first use in this function)
rlibmemcached_wrap.c:6678: error: expected expression before ‘)’ token
rlibmemcached_wrap.c:6696: error: expected expression before ‘)’ token
rlibmemcached_wrap.c:6697: error: ‘struct memcached_st’ has no member named ‘sasl_callbacks’
rlibmemcached_wrap.c:6697: error: expected ‘)’ before ‘const’
rlibmemcached_wrap.c:6697: error: expected ‘;’ before ‘arg2’
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_sasl_callbacks_get’:
rlibmemcached_wrap.c:6709: error: ‘sasl_callback_t’ undeclared (first use in this function)
rlibmemcached_wrap.c:6709: error: ‘result’ undeclared (first use in this function)
rlibmemcached_wrap.c:6720: error: expected expression before ‘)’ token
rlibmemcached_wrap.c:6720: error: ‘struct memcached_st’ has no member named ‘sasl_callbacks’
rlibmemcached_wrap.c: In function ‘_wrap_memcached_set_sasl_callbacks’:
rlibmemcached_wrap.c:12030: error: ‘sasl_callback_t’ undeclared (first use in this function)
rlibmemcached_wrap.c:12030: error: ‘arg2’ undeclared (first use in this function)
rlibmemcached_wrap.c:12030: error: expected expression before ‘)’ token
rlibmemcached_wrap.c:12048: error: expected expression before ‘)’ token
rlibmemcached_wrap.c:12049: error: expected ‘)’ before ‘const’
rlibmemcached_wrap.c:12049: error: expected ‘)’ before ‘arg2’
rlibmemcached_wrap.c: In function ‘_wrap_memcached_get_sasl_callbacks’:
rlibmemcached_wrap.c:12131: error: ‘sasl_callback_t’ undeclared (first use in this function)
rlibmemcached_wrap.c:12131: error: ‘result’ undeclared (first use in this function)
rlibmemcached_wrap.c:12142: error: expected expression before ‘)’ token
rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:
rlibmemcached_wrap.c:13344: error: ‘SASL_OK’ undeclared (first use in this function)
make: *** [rlibmemcached_wrap.o] Error 1
Gem files will remain installed in /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7 for inspection.
Results logged to /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/gem_make.out
sudo gem install memcachedBuilding native extensions. This could take a while…ERROR: Error installing memcached: ERROR: Failed to build gem native extension.
/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby extconf.rbLibmemcached already built; run ‘rake clean’ first if you need to rebuild.creating Makefile
makegcc -I. -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/x86_64-linux -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/x86_64-linux -I. -fPIC -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/include -L/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/lib -g -O2 -g -O2 -c rlibmemcached_wrap.crlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_sasl_callbacks_set’:rlibmemcached_wrap.c:6678: error: ‘sasl_callback_t’ undeclared (first use in this function)rlibmemcached_wrap.c:6678: error: (Each undeclared identifier is reported only oncerlibmemcached_wrap.c:6678: error: for each function it appears in.)rlibmemcached_wrap.c:6678: error: ‘arg2’ undeclared (first use in this function)rlibmemcached_wrap.c:6678: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c:6696: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c:6697: error: ‘struct memcached_st’ has no member named ‘sasl_callbacks’rlibmemcached_wrap.c:6697: error: expected ‘)’ before ‘const’rlibmemcached_wrap.c:6697: error: expected ‘;’ before ‘arg2’rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_sasl_callbacks_get’:rlibmemcached_wrap.c:6709: error: ‘sasl_callback_t’ undeclared (first use in this function)rlibmemcached_wrap.c:6709: error: ‘result’ undeclared (first use in this function)rlibmemcached_wrap.c:6720: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c:6720: error: ‘struct memcached_st’ has no member named ‘sasl_callbacks’rlibmemcached_wrap.c: In function ‘_wrap_memcached_set_sasl_callbacks’:rlibmemcached_wrap.c:12030: error: ‘sasl_callback_t’ undeclared (first use in this function)rlibmemcached_wrap.c:12030: error: ‘arg2’ undeclared (first use in this function)rlibmemcached_wrap.c:12030: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c:12048: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c:12049: error: expected ‘)’ before ‘const’rlibmemcached_wrap.c:12049: error: expected ‘)’ before ‘arg2’rlibmemcached_wrap.c: In function ‘_wrap_memcached_get_sasl_callbacks’:rlibmemcached_wrap.c:12131: error: ‘sasl_callback_t’ undeclared (first use in this function)rlibmemcached_wrap.c:12131: error: ‘result’ undeclared (first use in this function)rlibmemcached_wrap.c:12142: error: expected expression before ‘)’ tokenrlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:rlibmemcached_wrap.c:13344: error: ‘SASL_OK’ undeclared (first use in this function)make: *** [rlibmemcached_wrap.o] Error 1
Gem files will remain installed in /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7 for inspection.Results logged to /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/memcached-0.19.7/ext/gem_make.out
分享到:
相关推荐
标题"libmemcached-0.42.tar.gz"指的是一个软件库的压缩包,其中包含了libmemcached的0.42版本。libmemcached是一个开源的C语言编写的客户端库,主要用于与Memcached分布式内存缓存系统进行交互。 描述中提到,PHP...
标题"libmemcached-0.34.tar.gz"表明这是一个软件库的源代码压缩包,名为libmemcached,版本为0.34,采用tar.gz格式进行打包。这种格式通常用于在Linux和Unix-like系统中分发开源软件。描述中提到,用户尝试了多个...
标题中的"libmemcached-1.0.17.tar.gz"是一个压缩包,其中包含了libmemcached的源代码,版本为1.0.17。用户可以下载此包,通过编译安装来获取libmemcached库,以便在自己的应用中集成Memcached的支持。 ...
【标题】"libmemcached-1.0.18.tar.gz" 提供的是 libmemcached 库的一个版本,这是由 Dustin Whittle 开发的一个 C 客户端库,专门用于与 Memcached 服务器进行交互。Memcached 是一个高性能、分布式内存对象缓存...
《Windows环境下libmemcached的构建与应用》 libmemcached是一款高效的C语言库,专为在分布式内存存储系统中操作键值对而设计,最常用于与Memcached服务器交互。这个压缩包“libmemcached-win-yshurik-win.rar”...
libmemcached 库 求php_memcached.dll 库 嗯不是php_memcache.dll哈。 别搞错了。
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
**libmemcached 知识详解** `libmemcached` 是一个高效的、跨平台的 C 语言库,专门设计用于与 `memcached` 服务器进行通信。这个库为开发者提供了简单的 API,使得在分布式缓存系统中存储和检索数据变得更加便捷。...
《深入理解libmemcached:基于libmemcached-0.23.tar.gz的解析》 libmemcached是一款开源的、轻量级的C语言库,它为应用程序提供了与分布式内存缓存系统Memcached交互的能力。libmemcached-0.23.tar.gz是这个库的源...
标题"windows下libmemcached"指的是在Windows操作系统环境下,针对libmemcached这个库的使用。libmemcached是一个C语言编写的、轻量级的、分布式的内存对象缓存系统,它主要用于存储和检索数据,提高应用程序的性能...
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
《libmemcached0.43patch:修复导致挂起的bug》 在IT行业中,库是程序员们构建软件的重要组成部分,它们提供了预编译的功能模块,使得开发者可以更高效地编写代码。Libmemcached就是这样一款重要的库,它是一个...
为了在Windows上运行使用libmemcached编译的程序,你需要将`libmemcached.dll`放在系统的PATH环境变量指定的目录下,或者与你的可执行文件放在一起。 **libmemcached.lib** `libmemcached.lib`是静态库文件,用于...
终于找到一个可以用vc2008编译的libmemcached了。因为给朋友弄个ASP的memcache客户端,所以需要win32平台的memcache client,之前找到一个完全针对win32平台,但测试后性能实在一般,还是去找libmemcached,费了很大...
在给定的文件列表中,"libmemcached-1.0.16-5.el7.x86_64.rpm"和"libmemcached-devel-1.0.16-5.el7.x86_64.rpm"正是对应版本的RPM包,适用于CentOS 7系统。使用RPM命令进行安装,可以确保软件在系统中的正确配置和...
php-memcached, 基于libmemcached库的memcached扩展 插件生成状态 描述这是的扩展,使用libmemcached库连接到memcached服务器。是一种性能高。分布式内存对象缓存系统,一般用于在加速数据库负载的情况下加速动态web...
**标题:“libmemcached_chang”** **描述:**在IT行业中,我们经常遇到各种软件安装和使用的问题。"memaslap"是一个用于测试和基准测试libmemcached库性能的工具,而“memcached”是广泛使用的分布式内存对象缓存...
libmemcached c/c++ API的使用及测试用例(C/C++语言); libmemcached源码修改,以支持memcached dead server的“快速”自动隔离和超时自动重连; 在网络上查找了很久,基于C/C++的使用例子很少且简单,也并不能...
Linux版本下的Memcached和Libmemcached是两种广泛用于提高应用程序性能的开源工具,特别是在处理大量数据缓存时。本文将详细介绍这两个组件以及如何在Redhat 5系统上配置和使用它们。 **Memcached** Memcached是一...