Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created April 10, 2015 10:39
Show Gist options
  • Save sbose78/876d319a504d2d304da7 to your computer and use it in GitHub Desktop.
Save sbose78/876d319a504d2d304da7 to your computer and use it in GitHub Desktop.
install ruby 2.2.0
apt-get update
apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.2.0
rbenv global 2.2.0
ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment