Skip to content

Instantly share code, notes, and snippets.

@behrangsa
Created March 24, 2012 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save behrangsa/2181303 to your computer and use it in GitHub Desktop.
Save behrangsa/2181303 to your computer and use it in GitHub Desktop.
Installing Ruby 1.8.7 via RVM in OS X 10.7 Lion + XCode 4.2+
  • Install MacPorts
  • Install apple-gcc-42 via MacPorts: sudo port install apple-gcc-42
  • Install RVM (I had some issues with stable, so I went with 1.10.2, but stable might work for you):
    • bash -s -- --version 1.10.2 < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
    • bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
  • Install Ruby 1.8.7 using apple-gcc-42: CC=/opt/local/bin/gcc-apple-4.2 rvm install 1.8.7
  • Enjoy!
@mpapis
Copy link

mpapis commented Mar 24, 2012

Please use RVM stable - https://gist.github.com/2182557

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