So glad when I come across rvm, but then I learned that it is only for Linux and OSX. I do work in Ubuntu sometimes, but other time I have to work in a Windows environment.
Then, I discover pik, hey, doing the same thing for you, but in Windows. So now even in XP, I can switch around with Ruby versions as well.
Installation is really easy, just gem install pik,
gem install pik
then you can tell pik the additional ruby versions by adding the path to it.
C:\pik add C:\ruby186\bin
To see all the versions you have
C:\>pik list -v
186: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
path: C:/ruby186/bin
191: ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] *
path: C:/Ruby19/bin
And do the switching,
C:\pik switch 186
More commands can be found at the pik site.
Rediculuosly simple yet so helpful….thanks Gordon!
2 Pings/Trackbacks