Error installing Ruby 2.3.8 in OSX 10.15.2 Catalina using RVM; OpenSSL not found

I tried everything and came to conclusion that there is problem with the binary of ruby 2.3.8 RVM has. The I removed RVM from my system and start using rbenv.

With Homebrew

$ brew install rbenv
$ rbenv init
# Do as it says
$ rbenv install 2.3.8

also make sure you the use the bundler specified in your legacy code's Gemfile.lock


It looks like old ruby version requires an older version of openSSL and also it has to be build with that version pointing in --with-openssl-dir

You might try this:

brew install rbenv/tap/[email protected]

PKG_CONFIG_PATH=/usr/local/Cellar/[email protected]/1.0.2t/lib/pkgconfig \
rvm install 2.3.7 \
--with-openssl-dir=/usr/local/Cellar/[email protected]/1.0.2t \
--with-openssl-lib=/usr/local/Cellar/[email protected]/1.0.2t/lib \
--with-openssl-include=/usr/local/Cellar/[email protected]/1.0.2t/include --rubygems ignore

Copied from