Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Two versions of Ruby on windows?

Jason Seifer How can I have available two versions of Ruby on windows? I need to have version 1.9.3 and 2.x, is it possible?

2 Answers

Merritt Lawrenson
Merritt Lawrenson
13,477 Points

rvm is the normal way of doing it, but windows is not *nix based and so doesn't run it. If you must run ruby on windows, you'll need to find a different utility for managing ruby versions. I think pik is the most popular one for windows:

https://github.com/vertiginous/pik

Merritt Lawrenson
Merritt Lawrenson
13,477 Points

The pik page says it is no longer maintained and suggests a program called uru:

https://bitbucket.org/jonforums/uru

Adam Sommer
Adam Sommer
62,470 Points

Check out Ruby Version Manager (rvm)