Here is a set of commands i ran to get ruby 3.2.2 installed on my macbook pro with m2 chip. rvm reinstall "ruby-3.2.2" --with-openssl-dir=/Users/razvan/miniforge3/bin/openssl