-
Download ruby from github.
-
Run configure (
$ ./configure) per the readme, but with flags:a) point the destination to your desired file (
--prefix=/Users/asteel/.rvm/rubies/ruby-2.4.0)b) if you're on OSX with brew installed openssl, (
--with-openssl-dir="$(brew --prefix openssl)" -
Follow the remaining installation instructions in the readme
-
Create the gemset ->
$ rvm use 2.4.0 --create -
Switch versions. ->
$ rvm use 2.4.0
Much more information on the ruby-lang site.