我刚刚在Mac上安装了Sierra,我不确定是否需要重新安装Ruby和Ruby Gem。当我将以下内容放入我的终端gem install pry
时,我得到以下Error loading RubyGems plugin "/Users/katypatterson/.rvm/gems/ruby-2.3.0@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": dlopen(/Users/katypatterson/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/katypatterson/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle
Reason: image not found - /Users/katypatterson/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle (LoadError)enter code here
当我去irb时,我收到此错误消息Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.
You may follow 'rvm notes' for dependencies and/or read the docs page https://rvm.io/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.
我不知道这是否与此有关。