我在配备 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
最佳答案
解决方案在错误消息中。您可能只需要安装 libyaml
尝试:
brew install libyaml
关于ruby - 在 macOS M2 上使用 rbenv 安装 Ruby 3.2.2 : Missing psych and libyaml issues,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75952731/