0
我用Rails 2.3.8 +的Redis + resque + Redis的命名空間聊齋志異「沒有這樣的文件來加載 - Redis的命名空間」異常時開始軌服務器
這是我environment.rb
config.gem 'jrails'
config.gem 'haml'
config.gem 'redis'
config.gem 'redis-namespace'
config.gem 'resque
這是我gem list
redis (2.0.3)
redis-namespace (0.7.0)
resque (1.9.7)
當我通過 '腳本/服務器' 啓動我的服務器,它表現出這樣的例外:
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
no such file to load -- redis-namespace
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:164:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
/mnt/workspace/webtails/config/environment.rb:9
我重新安裝了redis-namespace
多次,它總是顯示此錯誤消息。哪裏錯了?