I am currently on ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin22]. I am trying to install Ruby 3.2.2 on Macbook Ventura 13.2.1. These are the steps I've followed:
brew install ruby-build
brew install rbenv
rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
brew upgrade ruby-build
rbenv install 3.2.2 --verbose
Then I get this error message:
/Users/xxx/.rbenv/versions/3.2.2/lib/ruby/3.2.0/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.
Loading the Ruby yaml extension failed (linked to incompatible /Users/xxx/.rvm/rubies/ruby-3.0.0/lib/libruby.3.0.dylib - /Users/xxx/.rvm/gems/ruby-3.0.0/gems/psych-5.1.1.1/lib/psych.bundle)
I did install libyaml and psych, but I am still getting the message above.