Skip to content

Instantly share code, notes, and snippets.

@scottjbarr
Created January 7, 2010 05:51
Show Gist options
  • Save scottjbarr/271029 to your computer and use it in GitHub Desktop.
Save scottjbarr/271029 to your computer and use it in GitHub Desktop.
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