#!/bin/bash # script for installing datamapper under ruby 1.9.1 # tested on Ubuntu and OpenSolaris # change this to your gem binary for ruby 1.9 GEM=gem1.9 # don't mess with the file system cd /tmp # bcrypt gem does not work with 1.9, we have to use the sources git clone git://github.com/genki/bcrypt-ruby.git cd bcrypt-ruby $GEM build *.gemspec sudo $GEM install *.gem cd .. sudo rm -R bcrypt-ruby wget http://gist.github.com/raw/58071/1227b150850f3bdbda052b080943c29b4ad10138/fake_json.gemspec $GEM build fake_json.gemspec sudo $GEM install json-*.gem rm fake_json.gemspec json-*.gem sudo $GEM install datamapper # that's about it exit