Skip to content

Instantly share code, notes, and snippets.

@Shommy
Forked from bartimaeus/install-ruby.sh
Created January 15, 2014 15:07
Show Gist options
  • Save Shommy/8437924 to your computer and use it in GitHub Desktop.
Save Shommy/8437924 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev
# apt-get -y install libmysqlclient-dev # uncomment for mysql support
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/usr/local
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment