Skip to content

Instantly share code, notes, and snippets.

@klarstil
Last active August 29, 2015 14:05
Show Gist options
  • Save klarstil/483808530f93f8de2e5a to your computer and use it in GitHub Desktop.
Save klarstil/483808530f93f8de2e5a to your computer and use it in GitHub Desktop.
HowTo Install Ruby 1.8.7 under Mac OS X 10.9.x

HowTo Install Ruby 1.8.7 under Mac OS X 10.9.x

  • First off all make sure, that you've installed XCode and Homebrew.
  • Install openssl and libyaml using brew:
brew update && brew install openssl libyaml
  • After that you can install rbenv:
brew install rbenv ruby-build
  • Now install a old version of GCC to compile Ruby 1.8.7:
brew tap homebrew/dupes && brew install homebrew/versions/gcc47
  • Now you can install Ruby using rbenv:
CC=gcc-4.7 rbenv install 1.8.7-p375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment