使用Rails3和Ruby 1.8.7运行Mongrel时出现问题



我正在运行一个linux实例。我的问题与LoadError使用Rails3和Ruby 1.9.2运行Mongrel相同除了我运行的是Ruby 1.8.7,我使用的是Linux。

以下是mongrel_cluster.log的内容:

** Starting Rails with development environment...
/usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:239:in `require': no such file to load -- dispatcher (LoadError)
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:239:in `require'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:225:in `load_dependency'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:596:in `new_constants_in'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:225:in `load_dependency'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:239:in `require'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in `rails'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
        from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
        from /usr/bin/mongrel_rails:19:in `load'
        from /usr/bin/mongrel_rails:19

我不知道如何解决这个问题。

有人能帮忙吗?TIA

gem list返回什么?

你的Gemfile看起来怎么样?

你试过重新安装Rails吗?

考虑为每个项目使用RVM和Gemset,这样就可以隔离gem冲突。

http://nerian.github.com/2011/01/15/RPS-1-RVM.html

相关内容

  • 没有找到相关文章

最新更新