Created
July 27, 2012 05:25
-
-
Save jpinnix/3186304 to your computer and use it in GitHub Desktop.
Installing Ruby 1.8.7-p358 with rbenv on Mountain Lion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Thanks Mate! Also worked for ree-1.8.7-2012.02
works like a charm :)
Thanks !
👍
Thank you!
Thanks!
Still working! ;) [ruby-1.8.7-p371]
Thanks!
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
This also works with
1.8.7-p371