【问题标题】:Unable to install any ruby gems无法安装任何红宝石宝石
【发布时间】:2017-08-10 10:38:57
【问题描述】:

我正在尝试在我的 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。如何重新安装 gem?

谢谢

【问题讨论】:

  • 您可以随时 rvm implode 并在需要时重新安装 RVM 重新开始。

标签: ruby-on-rails ruby rubygems jruby


【解决方案1】:
rvm get stable --auto-dotfiles

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-23
    • 1970-01-01
    • 2011-01-25
    • 2013-12-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多