我在一台配有M2 CPU的Mac上使用rbenv。我安装了ruby 2.7.2,并且还想安装ruby 3.2.2。当运行rbenv install 3.2.2时,我得到以下错误:
yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
1条答案
按热度按时间kuhbmx9i1#
解决方案在错误消息中。您可能只需要安装
libyaml
尝试: