Skip to content

Instantly share code, notes, and snippets.

@mgomes
Created August 20, 2010 04:23
Show Gist options
  • Save mgomes/539596 to your computer and use it in GitHub Desktop.
Save mgomes/539596 to your computer and use it in GitHub Desktop.
# Install Ruby 1.9.2 on OS 10.6
# Uses RVM and homebrew
# Install RVM (if you haven't already)
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# Install homebrew (if you haven't already)
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
# If you already had rvm installed (older versions only)
rvm update
rvm reload
# Install iconv
rvm package install iconv
# Install libyaml
brew install libyaml
# Install readline
brew install readline
# Install Ruby 1.9.2
rvm install 1.9.2 -C --with-readline-dir=/usr/local/Cellar,--with-libyaml-dir=/usr/local/Cellar,--with-iconv-dir=$HOME/.rvm/usr,--build=x86_64-apple-darwin10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment