Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Ruby 1.8 and Rubygems on Debian
#!/bin/bash
#
# Install Ruby 1.8 and Rubygems on Debian.
#
# Author : Scott Barr
# Date : 7 Jan 2010
#
# make sure some required packages are installed
sudo apt-get install build-essential make zlibc zlib1g zlib1g-dev libssl-dev
# install some package you will need for DB support
sudo apt-get install postgresql-server-dev-8.1 libmysql-ruby mysql-client libmysqlclient15-dev
cd /usr/local/src
wget http://gist.github.com/raw/271007/f0c3dc2b89c36896a2aee9b6c5bf56ff782dcf13/install_ruby18_from_source.sh
chmod u+x install_ruby18_from_source.sh
./install_ruby18_from_source.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment