ruby-install ruby 3.1.4 -- --with-openssl-dir=/opt/homebrew/opt/openssl@1.1
This is for Apple Silicon, change the path to open ssl for Intel, you can find the path with brew info openssl@1.1
ruby-install ruby 3.1.4 -- --with-openssl-dir=/opt/homebrew/opt/openssl@1.1
This is for Apple Silicon, change the path to open ssl for Intel, you can find the path with brew info openssl@1.1