DEV Community

Cover image for Install Ruby older versions with Openssl@1.0
Mihir Lathiya
Mihir Lathiya

Posted on

Install Ruby older versions with Openssl@1.0

prerequisite:

  • RVM

run this command:

brew install rbenv/tap/openssl@1.0

PKG_CONFIG_PATH=/usr/local/Cellar/openssl@1.0/1.0.2t/lib/pkgconfig \
rvm install 2.3.8 \
--with-openssl-dir=/usr/local/Cellar/openssl@1.0/1.0.2t \
--with-openssl-lib=/usr/local/Cellar/openssl@1.0/1.0.2t/lib \
--with-openssl-include=/usr/local/Cellar/openssl@1.0/1.0.2t/include --rubygems ignore
Enter fullscreen mode Exit fullscreen mode

this will add openssl@1.0 and install ruby 2.3.8 version
you can change the version if you want here i've used 2.3.8

done, enjoy.

Top comments (0)