Skip to content

Instantly share code, notes, and snippets.

@adsteel
Last active April 29, 2016 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adsteel/8ed19d1ea4401c2dd6dbdf5ca5bea3f7 to your computer and use it in GitHub Desktop.
Save adsteel/8ed19d1ea4401c2dd6dbdf5ca5bea3f7 to your computer and use it in GitHub Desktop.
Build Ruby from Scratch on OSX

Build ruby from scratch on OSX

  1. Download ruby from github.

  2. 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)"

  3. Follow the remaining installation instructions in the readme

  4. Create the gemset -> $ rvm use 2.4.0 --create

  5. Switch versions. -> $ rvm use 2.4.0

Much more information on the ruby-lang site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment