#!/bin/bash
cd /opt/
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
tar xvf ruby-1.8.7-p72.tar.gz 
cd ruby-1.8.7-p72
./configure
make
make install

cd /opt/
wget wget http://ftp.de.debian.org/debian/pool/main/libg/libgems-ruby/libgems-ruby_1.2.0.orig.tar.gz
tar xvf libgems-ruby_1.2.0.orig.tar.gz 
cd rubygems-1.2.0/
ruby setup.rb

gem install rails -v=2.1.2

gem update --system
gem update --system
