使用 Rails3 和 Ruby 1.8.7 运行 Mongrel 时出现问题
我正在运行一个 Linux 实例。我的问题与 LoadError running Mongrel with Rails3 相同,红宝石1.9.2 除了我运行的是 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
I am running a linux instance. My question is the same as LoadError running Mongrel with Rails3 and Ruby 1.9.2
except for the fact that I am running Ruby 1.8.7 and I am using Linux.
Here is the contents of the 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
I am at a loss on how to fix this.
Can someone help please? TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
gem list
返回什么?你的 Gemfile 是什么样的?
您尝试过重新安装 Rails 吗?
考虑为每个项目使用 RVM 和 Gemset,以便隔离 gem 冲突。
http://nerian.github.com/2011/01/15 /RPS-1-RVM.html
What does
gem list
returns?How does your Gemfile looks like?
Did you try reinstalling Rails?
Consider using RVM and a Gemset for each project so that you can isolate gem conflicts.
http://nerian.github.com/2011/01/15/RPS-1-RVM.html