I am using rbenv on a Mac with an M2 CPU. I have ruby 2.7.2 installed and want to also install ruby 3.2.2. When running rbenv install 3.2.2, I get the following error:
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