Skip to content

Instantly share code, notes, and snippets.

@mm1
Forked from beanieboi/ruby_install.sh
Created October 15, 2012 12:56
Show Gist options
  • Select an option

  • Save mm1/3892321 to your computer and use it in GitHub Desktop.

Select an option

Save mm1/3892321 to your computer and use it in GitHub Desktop.
compile ruby from scratch
#!/usr/bin/env bash
aptitude -y update
aptitude -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/opt/ruby-1.9.3-p286
make -j 4
make install
ln -s /opt/ruby-1.9.3-p286/ /opt/ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment