'memcache-client' problem - app can't load the gem

Posted by Max Williams on Stack Overflow See other posts from Stack Overflow or by Max Williams
Published on 2010-03-09T10:18:26Z Indexed on 2010/03/09 10:21 UTC
Read the original article Hit count: 466

Filed under:
|
|
|

Hi all - i'm trying to get memcached and the Interlock plugin working with a new rails app. The weird thing is that they both work fine in another app on the same machine and i can't figure out the difference that's stopping this app. The new app is rails 2.3.4 and the old one is 2.2.2 in case that's a factor.

When the app starts, i get a warning from interlock:

`install_memcached':Interlock::ConfigurationError: 'memcache-client' client requested but not installed. Try 'sudo gem install memcache-client'.

Now, i have memcache-client installed:

$> gem list | grep memcache
memcache-client (1.7.8)

The gem is in /var/lib/gems/1.8, which is in my GEM_PATH variable.

On a bit of further investigation, the above error is raised by interlock when it refers to the MemCache class, which doesn't exist and so raises an 'anonymous module' error. So, ultimately, the problem is that MemCache isn't loaded. I have a memcached.yml in my config folder (below) however. I'm stuck - any advice anyone?

#contents of config/memcached.yml
defaults:
  namespace: millionaire
  #sessions: true
  sessions: false
  client: memcache-client
  with_finders: true
development:
  servers:
    - 127.0.0.1:11211
production:
  servers:
    - 127.0.0.1:11211

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails