Skip to content

Instantly share code, notes, and snippets.

@phil-monroe
Created February 20, 2013 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phil-monroe/4998502 to your computer and use it in GitHub Desktop.
Save phil-monroe/4998502 to your computer and use it in GitHub Desktop.
Things I did to install Ruby 1.9.3 on OS X Mountain Lion (10.8)
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
exec $SHELL -l
brew install readline openssl
export CFLAGS='-g -O2'
export CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`"
export CC="`which gcc`"
export MAKE_OPTS='-j 8'
rbenv install 1.9.3-p385
rbenv rehash
rbenv global 1.9.3-p385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment