我正在尝试更新到Ruby 2.5.3并使用RVM。
在安装过程中,出现以下错误:
Error running '__rvm_with ruby-2.5.3@myapp gemset_pristine',
please read /Users/me/.rvm/log/1554634536_ruby-2.5.3/gemset.pristine-ruby-2.5.3@myapp.log
在此日志文件中,似乎是以下问题:
warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
我尝试了几种不同的方法:
brew install libyaml
给出Warning: libyaml 0.2.2 is already installed and up-to-date
rvm pkg install libyaml
成功安装了libyaml
rvm reinstall ruby-2.5.3 --autolibs=3 --force
我仍然收到以下gemset错误:Error running '__rvm_with ruby-2.5.3@myapp gemset_pristine'
我该如何调试呢?