Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created October 24, 2009 12:59
Show Gist options
  • Save vangberg/217534 to your computer and use it in GitHub Desktop.
Save vangberg/217534 to your computer and use it in GitHub Desktop.
bootstrap ruby + rubygems on debian
#!/bin/sh
apt-get update
apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev curl
curl http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz | tar zxvf -
cd ruby-1.8.7-p174
./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr
make
make install
cd ..
curl -L http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz | tar zxvf -
cd rubygems-1.3.5
ruby setup.rb
ln -sfv /usr/bin/gem1.8 /usr/bin/gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment