Skip to content

Instantly share code, notes, and snippets.

View dosire's full-sized avatar

Sytse Sijbrandij dosire

  • Dosire
View GitHub Profile
#!/bin/bash
# This file is available publicly online on http://gist.github.com/475358
# Use the raw link to download
if [ "`gem -v`" != "1.3.6" ]; then
sudo apt-get remove rubygems rubygems1.8 -y;
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz;
tar -xvzf rubygems-1.3.6.tgz;
sudo ruby rubygems-1.3.6/setup.rb;
sudo ln -sfv /usr/bin/gem1.8 /usr/bin/gem
fi