我正在使用rvm管理我的gemsets。我有一个名为ruby-2.1.2@internal_management_system的特定gemset,并且从mac osx的终端我能够运行我的rails应用程序。但是,当我尝试在RubyMine中运行相同的应用程序时,我收到以下消息:
RubyMine has detected that some of the gems required for 'internal_management_system' are not installed
然后在RubyMine中,当我尝试运行项目时,出现以下错误:
/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/myuser/projects/internal_management_system/test/dummy/bin/rails server -b 0.0.0.0 -p 3000 -e development
/Library/Ruby/Gems/2.0.0/gems/bundler-1.6.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.5/lib/bundler/spec_set.rb:85:in `map!'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.5/lib/bundler/spec_set.rb:85:in `materialize'
似乎根本没有使用正确的gemset。当我从终端运行rvm gemdir时,我得到了这个:
/Users/myuser/.rvm/gems/ruby-2.1.2@internal_management_system
我相信我遵循了所有先决条件。我做了以下事情:
我在这里缺少什么?
答案 0 :(得分:2)
好的,我找到了一个解决方案。当我去Run |编辑配置,在Ruby SDK下,我从
切换Use project SDK: internal_management_system
到
Use other SDK: RVM: ruby-2.1.2 [internal_management_system].