Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Created September 13, 2011 19:30
Show Gist options
  • Save jrgifford/1214823 to your computer and use it in GitHub Desktop.
Save jrgifford/1214823 to your computer and use it in GitHub Desktop.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
mkdir ~/rbenv-tmp
cd ~/rbenv-tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar -zxvf ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure --prefix=$HOME/.rbenv/versions/1.9.2-p290
make
make install
rbenv rehash
cd ~
rm -rf ~/rbenv-tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment