Update Ruby Version!

Hey guys

I am running Ruby 1.8.7 on Ubuntu 10.04

How can I update it to 1.9.1? I tried instaling the 1.9.1 package,
everything seemed to work, but if I run "ruby -v" it still says
1.8.7.

I might be doing something wrong... so can someone plot out the steps
to updating the ruby version?

Thank you

Doesn't ruby install itself into ruby1.9? I know on my debian box, 'ruby' is aliases to 'ruby1.8'.

I bet you have the same issue.

-philip

David Zhu wrote:

Hey guys

I am running Ruby 1.8.7 on Ubuntu 10.04

How can I update it to 1.9.1? I tried instaling the 1.9.1 package,
everything seemed to work, but if I run "ruby -v" it still says
1.8.7.

I might be doing something wrong... so can someone plot out the steps
to updating the ruby version?

Thank you

I know this isn't exactly what you were asking, but look into RVM (Ruby
Version Manager) [1]. It makes is pretty easy to have multiple versions
of Ruby on your system.

Peace.

[1] http://rvm.beginrescueend.com

I was just about to suggest this. I run it with both Ruby 1.8.7 and
Ruby 1.9.2. It is actually quite handy.

Regards,

Fidel.