开发者

Error message: uninitialized constant Rails::Initializer::MemCache

开发者 https://www.devze.com 2022-12-29 18:44 出处:网络
I\'ve installed just about every library/gem that I could find 开发者_StackOverflowfor memcached/memcache, but everytime I attempt to run my application I get this error:

I've installed just about every library/gem that I could find 开发者_StackOverflowfor memcached/memcache, but everytime I attempt to run my application I get this error:

Error message:
uninitialized constant Rails::Initializer::MemCache

Exception class:
NameError

I have tried $ telnet localhost 11211 and memcached is definitely running. Any ideas?

(I'm running Apache2/Passenger)


I ended up having to put

require 'MemCache'

in my environment.rb


Try to load it at the irb prompt.

# irb
> require 'rubygems'
> gem 'memcache-client'

This should give you a more descriptive error message.

0

精彩评论

暂无评论...
验证码 换一张
取 消