Installing Ruby 1.9.3 (in a usable state)

8th February 2012 – 133 words

Here are some thoughts on how to install Ruby with rvm and most features on a Debian/Ubuntu plattform:

apt-get 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

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

rvm install 1.9.3
rvm use 1.9.3 --default
rvm use @global   #using global gemset, which all gemsets inherit
gem install bundler pry awesome_print nokogiri capistrano guard \
    rspec rb-inotify guard-rspec

We also install RVM and compile the latest 1.9.3 branch and setting it to our shell’s default. Aftwards I install some gems which i need in almost every project.


Reposted from notes.it-jobs-und-stellen.de