开发者

Updating from Ruby 1.8.7 to Ruby 1.9.1

开发者 https://www.devze.com 2023-01-06 13:24 出处:网络
Currently I have Ruby 1.8.7 and Rails 2.3.8. Is it possible to update ruby so that I do not have to re-install all the开发者_开发技巧 gems again?You\'re best bet is using RVM, it will let you have mul

Currently I have Ruby 1.8.7 and Rails 2.3.8. Is it possible to update ruby so that I do not have to re-install all the开发者_开发技巧 gems again?


You're best bet is using RVM, it will let you have multiple versions of Ruby and gems per directory or project.


No - you will have to install the gems again per Ruby. RVM aids this in that you can import a gemset file, but ultimately - you will end up installing the gems again.

See https://rvm.io/gemsets/importing/ for more details


Just want to add that if you don't like rvm cause of the way it overwrites cd and gem, you can use rbenv/ruby build tool just wanting to point out that there are more options now. The github repo is here https://github.com/sstephenson/rbenv


Ruby is currently on version 1.9.1, which sports a new JIT VM, providing much improved performance when compared to Ruby 1.8. The good news is that Rails, as of version 2.3.2, fully supports Ruby 1.9.1. The bad news is that several Ruby libraries have not been updated for Ruby 1.9.1. Please refer to IsItRuby19 to see a list of currently supported Ruby 1.9.1 libraries.

0

精彩评论

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