Skip to content

Instantly share code, notes, and snippets.

@takuyan
Created November 12, 2012 02:54
Show Gist options
  • Save takuyan/4057250 to your computer and use it in GitHub Desktop.
Save takuyan/4057250 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install git
mkdir -p ~/tmp
cd ~/tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar -zxf ruby-1.9.3-p327.tar.gz
cd ruby-1.9.3-p327
./configure
make
sudo make install
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL
mkdir -p .rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv rehash
rbenv install 1.9.3-p327
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment