Skip to content

Instantly share code, notes, and snippets.

@McRipper
McRipper / gist:1069217
Created July 7, 2011 09:58 — forked from plindberg/gist:990919
Installing Ruby 1.9.2 via RVM, RubyGems, and Passenger on Debian 5.x (for Rails 3.1 deployment)

Install needed packages

apt-get update
apt-get install build-essential bison openssl libreadline5 libreadline5-dev \
  curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 \
  libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libcurl4-openssl-dev

Install RVM

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)