Saturday, February 18, 2012

Installing Ruby 1.9.3 via RVM in Ubuntu 11.10

This morning, I needed to install Ruby 1.9.3 on my Ubuntu 11.10 system, but it took a little bit of trial and error. I did get it working, using (approximately) the following steps.

RVM


First, install RVM. This is nice and easy.

sudo apt-get install ruby-rvm


It seems that this is not the latest version of RVM, so it has some problems trying to install 1.9.3. So at the command line, do the following:

sudo rvm get head
sudo rvm reload


Ruby 1.9.3


Unfortunately, just typing rvm install 1.9.3 will not work, so type the following instead:

sudo rvm install 1.9.3-p125


This will take quite a while, since it downloads the Ruby source, configures it and compiles it. After it is done, set the default Ruby version in new shells to the version you just installed:

sudo rvm --default use 1.9.3-p125


Local Shell Setup


Even after RVM and Ruby 1.9.3 are installed, you will need to set up your local .bash_profile, since the RVM .deb file will not do that for you. In Ubuntu, RVM is installed in /usr/share/ruby-rvm, so add the following line to the end of your .bash_profile:

[[ -s "/usr/share/ruby-rvm/scripts/rvm" ]] && . "/usr/share/ruby-rvm/scripts/rvm"


Then, either open a new shell or source your .bash_profile, thus:

. ~/.bash_profile


Test It Out


Now, try running Ruby:

ruby -v


If everything is working properly, you should see something like:

ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

3 comments:

jason said...

Welcome to suplexmedshop Online Drugstore, BUY Xanax Online without prescription.
Looking to buy prescription drugs online discreetly?
You are at the right place! Here, you can buy drugs online without prescription and have it shipped and delivered to your location.
As part of our expansion, we equally ship to all 50 States within the USA, The UK, Canada, Australia and a whole lot of countries worldwide.

Buying prescription drugs like Actavis Promethazine – Codeine Cough Syrup has never been easier.
We equally employ the most discreet payment methods, Bitcoin being one of many. All to ensure your safety and discretion is guaranteed.
Buy Drugs Online Without Prescription .Actavis
Promethazine Cough Syrup with codeine
and Morphine Sulphate for Sale Online Without Prescription.
Actavis Promethazine.
How should I take Adderall?,
BUY Xanax Online
Buy Adderall Online
BUY DEMEROL ONLINE
BUY Promethazine Codeine
BUY ECSTACY ONLINE
BUY VYVANSE ONLINE
Oxycodone for sale

malar said...

Thank you for excellent article.You made an article that is interesting.
Informatica online job support from India|Informatica project support AWS online job support from India|AWS project support|ETL Testing online job support from India|ETL Testing project support||Pega online job support from India|Pega project support|Pentaho online job support from India|Pentaho project support|Python online job support from India|Python project support

Siddharth said...

This is very good information I like this blog keep it up

Telegram Porn Channel || uk whatsapp group link 2020 || indian whatsapp group link 2020