Rails 3.0 杂种问题
好吧,伙计们,事实是我正在努力将应用程序移植到 justhost.com,因为我还买不起自己的服务器。不管怎样,我在 mongrel.log 中收到了这个错误,但我没有得到关于这个错误的含义或如何修复它的帮助。
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:in require': 没有要加载的文件 -- 调度程序 (LoadError) 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:in
require' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:225:in load_dependency' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:591:in
new_constants_in' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:225:in load_dependency' 来自 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependency.rb:239:in
require' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in rails' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in
cloaker_' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in call' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in
listener' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in cloaker_' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in
call' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in initialize' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in
new' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in run' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in
run' 来自 /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 来自 /usr/bin/mongrel_rails:19:in `load' 来自 /usr/bin/mongrel_rails:19
我不认为这与我的应用程序的设置有关,但我对 Rails 也有点陌生。如果有人知道如何解决这个问题或我可能做错了什么,我将不胜感激。提前致谢!
Ok guys the truth is I'm working on porting an application up to justhost.com as I cant afford my own servers yet. Either way I have been receiving this error in the mongrel.log and am getting no help as to what this error means or how to fix it.
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- dispatcher (LoadError)
require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in load_dependency'
new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in load_dependency'
require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in rails'
cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in call'
listener'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in cloaker_'
call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in initialize'
new'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in run'
run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in
from /usr/lib/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 don't think this is anything dealing with the setup of my application, but I'm also a bit of a newb to Rails. If anyone knows how to fix this or what I may have done wrong, I'd appreciate it. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对这个做了一些调查。由于 JustHost 使用 cPanel,因此 cPanel 目前不支持 Rails 3。
I did some looking into this one. As JustHost uses cPanel it turns out that cPanel currently does not support Rails 3.
我不知道您是否仍然对答案感兴趣,但是当我尝试在我的rails3应用程序中使用命令 mongrel_rails start 启动 mongrel 时,我遇到了同样的错误。
但当我在应用程序的脚本文件夹中使用 Rails 服务器启动它时,它就起作用了。如果 mongrel gem 在您的 Gemfile 中,则运行 Rails 服务器将启动 Mongrel 而不是 WEBrick。
您可以在此处找到更多信息。
希望这有帮助!
约翰
I don't know if you're still interested in an answer but I had the same error when I was trying to start mongrel with the command mongrel_rails start in my rails3 app.
But it worked when I started it with rails server in the script folder of your app. If the mongrel gem is in your Gemfile, running rails server will start Mongrel and not WEBrick.
You'll find more information here.
Hope this helps !
Johan