【发布时间】:2015-03-28 03:27:47
【问题描述】:
我遇到了一个问题,我使用 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
上运行【问题讨论】:
-
Windows 用户朋友,听到您遇到此问题感到很沮丧!在命令行执行
bundle show json会得到什么? -
D:\Programming\RUBY\RubyMine\Test_app_4>bundle show jsonDL is deprecated, please use FiddleC:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.2 -
^ 在旁注中,如何在评论中添加换行符?大声笑
标签: ruby ruby-on-rails-4 bundler rubymine-7