我已經用rails composer在rails項目上創建了一個ruby。我可以從終端運行該項目,但是當我的RubyMine打開它,它顯示這個錯誤在RubyMine中:「您的Ruby版本是2.0.0,但您的Gemfile指定了1.9.3(Bundler :: RubyVersionMismatch)」
Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
我一直在使用「紅寶石-v」檢查我的紅寶石版本,它說
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
我導軌採用 '軌-v'
Rails 3.2.13
然而,當我的RubyMine打開項目(版本:5.4.1)版本,它說
/path/to/my/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:361:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
的SDK版本的RubyMine出現「RVM:紅寶石2.0.0-P195」和語言水平是1.9
我已經檢查其他線程對這個錯誤,但他們都不是在終端工作並在RubyMine中顯示錯誤。我該如何解決這個問題?
打開你的Gemfile,看看你是否有紅寶石版本。 – AnkitG