Skip to content

Instantly share code, notes, and snippets.

@jpinnix
Created July 27, 2012 05:25
Show Gist options
  • Save jpinnix/3186304 to your computer and use it in GitHub Desktop.
Save jpinnix/3186304 to your computer and use it in GitHub Desktop.
Installing Ruby 1.8.7-p358 with rbenv on Mountain Lion
Follow the instructions here: The Hitchhiker's Guide to Riding a
Mountain Lion http://j.mp/Qm5UJD, including installing XQuartz.
After installing XQuartz set the correct path to the X11 library to
install Ruby 1.8.7-p358 with rbenv:
export CPPFLAGS=-I/opt/X11/include
then let the compiler know where gcc-4.2 is:
CC=/usr/local/bin/gcc-4.2 rbenv install 1.8.7-p358
@keith
Copy link

keith commented Dec 21, 2012

Thank you for this.

@linjunpop
Copy link

This also works with 1.8.7-p371

@adammacleod
Copy link

Thanks Mate! Also worked for ree-1.8.7-2012.02

@thiagopnts
Copy link

works like a charm :)

@teodor-pripoae
Copy link

Thanks !

@jameswomack
Copy link

👍

@sadfuzzy
Copy link

Thank you!

@agieche
Copy link

agieche commented Jul 21, 2013

Thanks!

@jguice
Copy link

jguice commented Sep 15, 2013

Still working! ;) [ruby-1.8.7-p371]

@dpriest
Copy link

dpriest commented Mar 31, 2014

Thanks!

@llbbl
Copy link

llbbl commented Nov 14, 2014

Here is how to do it on Mavericks using a slightly newer version of gcc + ruby

brew install gcc47
CC=gcc-4.7 rbenv install 1.8.7-p375
rbenv global 1.8.7-p375
source ~/.zshrc

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