我试图在Mac OS Catalina 10.15.6中安装ruby 2.2.4,但失败:
运行'env GEM_HOME=/Users/asmitakalena/.rvm/gems/ruby-2.2.4@global GEM_PATH = /Users/asmitakalena/.rvm/rubies/ruby-2.2.4/bin/ruby -d / Users / asmitakalena / .rvm / src / rubygems-3.0.8 / setup.rb --no-document', 请阅读/Users/asmitakalena/.rvm/log/1600360212_ruby-2.2.4/rubygems.install.log
错误日志显示:
/Users/asmitakalena/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems.rb:1231中的异常LoadError' at /Users/asmitakalena/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems.rb:1222 - cannot load such file -- rubygems/defaults/operating_system Exception
LoadError'-无法加载此类文件-rubygems /默认/红宝石
/Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- openssl (LoadError) from /Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/core_ext/kernel_require.rb:54:in
require'
来自/Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/specification.rb:2481:在to_ruby' from /Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/commands/setup_command.rb:405:in
中install_default_bundler_gem'
来自/Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/commands/setup_command.rb:167:in execute' from /Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/command.rb:321:in
invoke_with_build_args'
来自/Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/command_manager.rb:184:在process_args' from /Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/command_manager.rb:148:in
中运行”
来自/Users/asmitakalena/.rvm/src/rubygems-3.0.8/lib/rubygems/gem_runner.rb:59:位于run' from setup.rb:41:in
'
注意,我已经使用这些命令使其正常工作
brew --prefix openssl@1.1
它也由于nokogiri错误而导致捆绑安装失败,并且我再也无法使用install命令了。困扰着这样的事情
错误:正在加载命令:安装(LoadError) 无法加载此类文件-zlib 错误:执行gem时...(NoMethodError) nil:NilClass的未定义方法`invoke_with_build_args'
任何帮助都会感激它。谢谢