Search code examples
namespacesredisruby-on-rails-2

no such file to load -- redis-namespace


I am working on Rails 2.3.8. I have following in my environment.rb

config.gem "redis"
config.gem "redis-namespace", :lib => "redis/namespace"

When I list my redis gems then I see:

redis (2.0.3)
redis-namespace(0.7.0)

When I run rake gems:install then I get an error that says:

no such file to load -- redis-namespace

Shouldn't requiring "redis/namespace" solve the issue? Can anyone please help me with this?


Solution

  • It sounds as if rake gems:install depends on the very gem it is trying to install.

    Try using rails_gem_install or bundler instead.