在macOS M2上使用rbenv安装Ruby 3.2.2:失踪的心理和利比亚问题

pbgvytdp  于 2023-04-11  发布在  Ruby
关注(0)|答案(1)|浏览(323)

我在一台配有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
kuhbmx9i

kuhbmx9i1#

解决方案在错误消息中。您可能只需要安装libyaml
尝试:

brew install libyaml

相关问题