How to update Ruby on Ubuntu 10.10?
Apologies in advance if this is a too nubs problem.
One friend got Beginning Rails 3 and we started playing Ruby using it (as .net developers!). I have installed Ubuntu 10.10 on VMWare Player - which apparently already had Ruby 1.9.2. Based on instructions in the book (with some quirks for total linux nubs) we managed to install Ruby 1.9.1 (ruby --version -> ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]).
开发者_开发技巧But Rails (latest version - 3.0.2 I think) insist that Ruby 1.9.2 is better for our health!
So: How to update Ruby on Ubuntu 10.10? I want just this one ruby be there.
I recommend Ruby Version Manager.
Install (yes, it takes a leap of faith):
$ curl https://get.rvm.io | bash
then
$ rvm install 1.9.2
$ rvm use 1.9.2
The recommended way to manage Ruby versions is through RVM: http://rvm.io/
Rails is right about the Ruby versions, btw.
精彩评论