Skip to content

Instantly share code, notes, and snippets.

@kennx
Forked from bartimaeus/install-ruby.sh
Last active December 20, 2015 02:59
Show Gist options
  • Save kennx/6060654 to your computer and use it in GitHub Desktop.
Save kennx/6060654 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc
sudo apt-get install git-core
sudo apt-get install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev
cd ~/downloads
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
tar -xvzf ruby-1.9.3-p392.tar.gz
cd ruby-1.9.3-p392/
./configure --prefix=/usr/local
make && make install
ruby -v
gem list
gem update --system
gem install bundle
gem update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment