![](/img/trans.png)
[英]Unable to install any Ruby gems - undefined method `invoke_with_build_args`
[英]Unable to install any ruby gems
我正在嘗試在我的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。 我如何回到安裝寶石?
謝謝
rvm get stable --auto-dotfiles
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.