开发者

How to update my version of Ruby from terminal?

开发者 https://www.devze.com 2023-02-12 19:28 出处:网络
I ran the command \'ruby -v\' on my Linux Mint 10 virtual machine and got: stap开发者_如何学Goiagutierrez@Sergio-Linux-VM ~/Desktop/Tickets/tickets $ ruby -v

I ran the command 'ruby -v' on my Linux Mint 10 virtual machine and got:

stap开发者_如何学Goiagutierrez@Sergio-Linux-VM ~/Desktop/Tickets/tickets $ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

How can I upgrade it to the latest version, 1.9.2?


I would suggest using RVM. That way you can keep the 1.8.7 version of Ruby, but you can also install new ones easily:

rvm install 1.9.2

And switch between them with no effort:

rvm 1.8.7
rvm 1.9.2

Using rvm you can set your default version of Ruby like this:

rvm --default use 1.9.2
0

精彩评论

暂无评论...
验证码 换一张
取 消