Installing ruby 3.0.0 on MacOs Monterey with ruby-install
-
I use ruby-install to manage rubies, and recently had to install ruby 3.0.0. Using the normal
ruby-install ruby-3.0.0
gave me a nasty set of errors related to OpenSSL. -
I found this issue on Github which mentioned that homebrew now defaults openssl to openssl@3 instead of openssl@1.1
-
What worked for me was:
-
brew install openssl@1.1 ruby-install ruby-3.0.2 -- --with-openssl-dir=$(brew --prefix openssl@1.1)
-