views:

425

answers:

2

Is there any way, on Ubuntu 9.04, to install ruby 1.8 as ruby1.8 (or get rid of it altogether) and have ruby 1.9 be the default ruby?

+1  A: 

I'm not really sure, but maybe this can help

update-alternatives --config ruby
just_a_dude
thanks, didn't work out of the box but searching for `update-alternatives ruby` brought up http://krnjevic.com/wp/?p=209 which has a howto
Martin DeMello
cool :) happy coding
just_a_dude
A: 

try

sudo apt-get install ruby1.9 rubygems1.9

or try building from source. this worked for me on ubuntu 9.04 and after a restart 1.9 was the standard ruby

i got it working via update-alternatives, as described here: http://krnjevic.com/wp/?p=209
Martin DeMello
-1. This seems like a cargo-cult administration, huh? "do something, reboot, pray it works, I don't know how" - that makes the overall entropy raise.
Wojciech Kaczmarek
I don't see what you're getting at - I installed and rebooted. You can install ruby1.9 either from the source, or via repository. This was the expected behaviour. I didn't sit down and mumble voodoo chants while feverishly typing in commands I thought looked pretty.