tags:

views:

39

answers:

3

I just downloaded Ruby 1.9.2, and I want it to completely replace the older version of Ruby (1.8.7) that I also have installed. (Mostly because I get confused when installing things with different versions floating around.)

What's the best way to do this? Do I uninstall the older version? (If so, how?) Can I just replace the old ruby1.8.7/bin/{ruby,irb} with the new ruby1.9.2/bin/{ruby,irb}?

I'm on a Windows 7 machine.

+1  A: 

No need to delete versions. Just Unpack 1.8.7 to another folder and change global PATH variable.

Nakilon
I'm not actually sure where my 1.8.7 folder is (how do I find out? a search didn't produce anything), and the things in my /usr/bin are from ruby1.8.7. So can I just replace or delete the Ruby-related things in /usr/bin with the 1.9.2 versions, and also add C:/Ruby192 to my PATH?
grautur
Oh, sorry, I meant 1.9.2. Yeah, you can have both versions and use PATH. Also, in any time you can use the old one.
Nakilon
+2  A: 

This isn't the answer you're looking for, but hopefully will help you in the future. You can use Pik on Windows (as opposed to RVM on Linux/Mac) to manage multiple concurrent versions of Ruby on the same development environment.

http://github.com/vertiginous/pik/

David
All I care about is not having to worry about whether something is using or getting installed to Ruby1.8.7 instead of 1.9.2, so is there any reason not to use Pik?
grautur
If it works as well as RVM does on my Mac, then I can't think of a reason not to use it. Basically it maintains which gems go to which environments (so you can customize each Ruby version different from others, install the same sets of gems for all of them, etc.) and lets you switch your current context between them (essentially by changing your PATH and any other necessary environmental settings).
David
A: 

recommend uninstall the old version using control panel -> Add/Remove programs if they're not listed then just move their folder (ex: c:\ruby18) to the recycle bin.

rogerdpack