Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created December 12, 2014 07:14
Show Gist options
  • Save mcandre/c3d7ba2c7e47efdcb906 to your computer and use it in GitHub Desktop.
Save mcandre/c3d7ba2c7e47efdcb906 to your computer and use it in GitHub Desktop.

On newer computers, RVM may have trouble building older Rubies. E.g., rvm 1.26 cannot build ruby-1.9 on Mac OS X 10.10 Yosemite.

However, by adding a compiler flag, we can successfully build and use these old Rubies:

$ rvm install 1.9 --with-gcc=clang
...
$ rvm use 1.9
$ rvm install 1.8 --with-gcc=clang
...
$ rvm use 1.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment