【发布时间】:2012-03-09 02:55:39
【问题描述】:
我正在尝试在我的 Windows 机器上运行 RoR 应用程序。我在配置所有内容方面取得了很大进展,但我被困在这里。当我尝试运行 rake 时,出现以下错误:
C:\inetpub\wwwroot\voterApp>rails server
C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- eventmachine (LoadError)
from C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
我已经完成了“gem install eventmachine --pre”,但这似乎没有帮助。谁能指出我正确的方向?我读过关于 ruby 加载路径被搞砸的消息,但我不确定这在这种情况下是否完全适合。
【问题讨论】:
-
我刚刚发现 bundler 没有拉入 eventmachine;我必须更新我的 gemfile 以要求它。原来'gem list'是你机器的红宝石,而不是你的项目宝石。我希望这对可能遇到类似问题的其他人有所帮助。
-
将此作为答案,然后关闭并接受您的问题。这会有很大帮助。
标签: ruby-on-rails ruby sqlite eventmachine