我遇到了一个问题,我使用 RubyMine v7.0 创建了一个 ruby-on-rails 应用程序,当我去运行时,我得到了提示
C:/ruby-2.0.0-p643-x64-mingw32/lib/ruby/gems/2.0.0/gems/bundler-1.9.1/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)
当我跑步时
gem install 'json'
它成功但即使我再次运行应用程序时也会出现相同的错误,即使在运行'bundle install'
.
当我使用bundle show 'json'
它时,它会显示宝石位置
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.2
这与 RubyMine 正在寻找的位置不同
C:/ruby-2.0.0-p643-x64-mingw32/lib/ruby/gems/2.0.0/gems
如何将安装 gem 的目录更改为上述正确的目录?任何建议都非常感谢:)
旁注:我在Windows 8上运行