Forums | Admin

Discussion Forums: memcached

Start New Thread Start New Thread

 

By: Florent Monbillard
RE: Problems installing memcached-0.14 [ reply ]  
2009-03-30 16:40
libmemcached 0.27 doesn't solve this issue, it doesn't compile neither for the same reasons of the first post (MEMCACHED_SERVER_MARKED_DEAD, MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS, ...)

By: Joe Foti
RE: Problems installing memcached-0.14 [ reply ]  
2009-03-28 17:33
Evan, I installed 25.14 and 0.13 respectively and all seemed fine. I ran a simple script/console and everything worked fine. In RAILS, I continually get on startup:

Starting Rails with development environment...
/Users/Joe/.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in `const_missing': uninitialized constant Rails::Initializer::Memcached (NameError)
from /Users/Joe/Documents/workspace/ithingy_web_branch/config/environments/development.rb:44:in `load_environment'


Any suggestion as to the disconnect here? The line in question in development.rb is:
CACHE = Memcached.new("localhost:11211")

environment.rb has require 'memcached'.

Thanks

By: Jim Powers
RE: Problems installing memcached-0.14 [ reply ]  
2009-03-11 22:44
Did a git pull tonight and building still failing.

By: Garry Tan
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-26 19:38
It sounds like there are problems with libmemcached 0.26, and the currently released memcached-0.14 is not ready for prime time.

Here's what I did to just geet memcached-0.13 working with 0.25 as Evan mentions in his blog post

As root, I did this:

wget http://blog.evanweaver.com/files/libmemcached-0.25.14.tar.gz
tar -xzvf libmemcached-0.25.14.tar.gz
cd libmemcached-0.25.14
./configure && make && make install
wget http://blog.evanweaver.com/files/memcached-0.13.gem
sudo gem install memcached-0.13.gem

By: blink
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-19 23:46
I'm attempting to evaluate memcached as a replacement for memcache-client in Rack. However, I've been unable to get a single version up and going.

Halp?

http://downloads.tangent.org provides downloads for 0.23, 0.25, and 0.26, and gems provides 0.12 and 0.14 for installation.
The COMPATIBILITY file in the github.org repo lists 0.14 being compatible with 0.25.14 but I cannot locate a place to download 0.25.14. 0.13 is listed as compatible with 0.25, but there's no 0.13 available for install, etc...
Attempting to install 0.11 returns an error of requiring RubyGems == 1.2, but the latest gems version is 1.3.

By: Evan Weaver
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-04 12:12
No, 0.26 lacks a critical patch. We might have to wait until 0.27.

By: Brett Neumeier
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-04 11:55
Hi!

Is there a version of libmemcached-0.26 that has the same extensions that you have as libmemcached-0.25.14? As Radosław Bułat points out, the standard upstream libmemcached-0.26 does not work.

Thanks,

bn

By: Radosław Bułat
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-04 09:00
I doesn't work for me either from rubygems and github sources. I have installed newest libmemcached from it's source (0.26 version).

checking for memcached_server_add_with_weight() in -lmemcached... yes
checking for libmemcached/memcached.h... yes
checking for libmemcached/memcached_constants.h... yes
checking for libmemcached/memcached_storage.h... yes
checking for libmemcached/memcached_result.h... yes
checking for libmemcached/memcached_server.h... yes
creating Makefile
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fPIC -fno-strict-aliasing -g -g -fPIC -O3 -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_set’:
rlibmemcached_wrap.c:5835: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_get’:
rlibmemcached_wrap.c:5858: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’
rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:
rlibmemcached_wrap.c:11380: error: ‘MEMCACHED_SERVER_MARKED_DEAD’ undeclared (first use in this function)
rlibmemcached_wrap.c:11380: error: (Each undeclared identifier is reported only once
rlibmemcached_wrap.c:11380: error: for each function it appears in.)
rlibmemcached_wrap.c:11411: error: ‘MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS’ undeclared (first use in this function)

By: Systems Vlex
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:33
For your consideration, all is running fine ;-)

Thank you very much.

By: Systems Vlex
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:31

Ok. Downloading and installing.

Thank you for your quick reply!

By: Evan Weaver
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:25
Use the pre-release versions of the gem and of libmemcached linked here: http://blog.evanweaver.com/articles/2009/01/24/secret-codes/ . They are very stable.

By: Systems Vlex
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:19
Please, could you let as know when you finish?

Thank you!

By: Evan Weaver
RE: Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:15
I built the SWIG binding against the wrong branch. I'm going to have to pull this release; thanks.

By: Systems Vlex
Problems installing memcached-0.14 [ reply ]  
2009-02-03 04:01
Hi!

We are having problems with the memcached-0.14 installation.
The libmemcached version is 0.26, the OS is an openSUSE 11.1, and this is the error output:

gem install memcached --no-rdoc --no-ri
Building native extensions. This could take a while...
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install memcached --no-rdoc --no-ri
checking for memcached_server_add_with_weight() in -lmemcached... yes
checking for libmemcached/memcached.h... yes
checking for libmemcached/memcached_constants.h... yes
checking for libmemcached/memcached_storage.h... yes
checking for libmemcached/memcached_result.h... yes
checking for libmemcached/memcached_server.h... yes
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/i586-linux -I. -D_FILE_OFFSET_BITS=64 -fPIC -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC -O3 -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_set’:
rlibmemcached_wrap.c:5835: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’
rlibmemcached_wrap.c: In function ‘_wrap_MemcachedSt_next_distribution_rebuild_get’:
rlibmemcached_wrap.c:5858: error: ‘struct memcached_st’ has no member named ‘next_distribution_rebuild’
rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’:
rlibmemcached_wrap.c:11380: error: ‘MEMCACHED_SERVER_MARKED_DEAD’ undeclared (first use in this function)
rlibmemcached_wrap.c:11380: error: (Each undeclared identifier is reported only once
rlibmemcached_wrap.c:11380: error: for each function it appears in.)
rlibmemcached_wrap.c:11411: error: ‘MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS’ undeclared (first use in this function)
make: *** [rlibmemcached_wrap.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/memcached-0.14 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/memcached-0.14/ext/gem_make.out

Anybody could help me, please?

Thank you very much.