好了,伙计们,事实是我正在致力于将一个应用程序移植到justhost.com上,因为我还买不起自己的服务器。无论哪种方式,我一直在mongrel.log中收到这个错误,但没有得到任何关于这个错误的含义或如何修复它的帮助。
/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) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in需要来自/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies的“from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:innew_constants_in”.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in需要来自/usr/lib/ruby/.rb:225:in/load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in/1.8/gems的/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in call' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:inlistener中的‘from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:148:in rails' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:incloaker_’/mongrel-1.1.5/bin/mongrel_rails:99:在cloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in调用‘从/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in新建’从/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in运行‘从/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
我不认为这与我的应用程序的设置有任何关系,但我也是Rails的新手。如果有人知道如何解决这个问题,或者我可能做错了什么,我将不胜感激。提前感谢!
发布于 2010-10-04 21:50:47
我调查了一下这个。由于JustHost使用cPanel,因此cPanel目前不支持Rails3。
发布于 2010-11-22 18:38:11
我不知道你是否仍然对答案感兴趣,但当我试图在我的rails3应用程序中使用mongrel_rails启动命令启动mongrel时,我遇到了同样的错误。
但当我在你的应用程序的脚本文件夹中使用rails服务器启动它时,它就起作用了。如果混合gem在Gemfile中,运行rails服务器将启动mongrel而不是WEBrick。
你会在here上找到更多信息。
希望这能有所帮助!
约翰
https://stackoverflow.com/questions/3851960
复制相似问题