Installing only ruby 1.9 [duplicate]
Solution 1:
There are many ways of install ruby.
RVM. This is the 'traditional' way that is used by many rubyists.
rbenv.
From packages.
From source (answer coming).
Solution 2:
From packages.
Install the following packages.
ruby1.9.1-full , ruby1.9.1-dev , libpq-dev (only libpq-dev if you're doing ruby on rails development as well.)
Solution 3:
This question has an answer which leads to a much more interesting "how-to" article "Ubuntu, Ruby, RVM, Rails, and You" guiding us through a fresh install of Ruby (and related things), starting from rvm
. It adds insights and provides a lot of remarks for beginners -- because Ruby is truly something awful to get setup when one is without all that background knowledge and support.
The article was last updated on October 11th, 2012 and should install Ruby 1.9.3, RVM and Rails 3.2.8.
I'm posting this answer for the sake of linking the related questions.