Skip to content

Instantly share code, notes, and snippets.

@rickbenetti
Created December 9, 2014 19:01
Show Gist options
  • Save rickbenetti/cc8298581e06082c8769 to your computer and use it in GitHub Desktop.
Save rickbenetti/cc8298581e06082c8769 to your computer and use it in GitHub Desktop.
Install Ruby on ubuntu
cd
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.1.4
rbenv global 2.1.4
ruby -v
sudo apt-get update
sudo 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
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment