无法安装任何红宝石宝石

时间:2017-03-19 01:11:10

标签: ruby-on-rails ruby rubygems jruby

我正在尝试在Mac上安装Rails。我一直得到一个Jruby错误或类似的东西:

gem install rails
Loading jruby-openssl in a non-JRuby interpreter
Error loading RubyGems plugin "/Users/User/.rvm/gems/ruby-2.4.0@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": cannot load such file -- jruby (LoadError)
Loading jruby-openssl in a non-JRuby interpreter
Error loading RubyGems plugin "/Users/User/.rvm/gems/ruby-2.4.0@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb": cannot load such file -- jruby (LoadError)
Loading jruby-openssl in a non-JRuby interpreter
ERROR:  Loading command: install (LoadError)
cannot load such file -- jruby
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

看起来我安装了JRuby,我认为在安装Java安装Netbeans之后就发生了。我使用RVM将ruby更新为2.4。我该如何回到安装宝石?

由于

1 个答案:

答案 0 :(得分:0)

rvm get stable --auto-dotfiles