Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created January 12, 2012 08:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tylerflint/1599324 to your computer and use it in GitHub Desktop.
Save tylerflint/1599324 to your computer and use it in GitHub Desktop.
Installing RVM

1. install rvm

Install curl as a dependency of the rvm installer:

aptitude install curl

Installing rvm as a multi-user install. This is so that everybody can use the gemsets, however we can also run the rails app as a non root user:

sudo bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

2. install git

sudo aptitude install git-core

3. Add all relevant users to rvm group:

sudo usermod -a -G rvm user

4. install ruby library dependencies

Found by typing rvm requirements

sudo aptitude install \
     build-essential openssl libreadline6 libreadline6-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 automake libtool bison subversion

5. install ruby 1.9.3

rvm install 1.9.3

6. set default rubies

rvm use 1.9.3 --default

7. update rubygems

gem update --system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment