So, I dropped pik and went with (at least to me) a general approach to Mac / Linux systems. I unpacked the compiled binaries of the various ruby versions that I wanted in / tools / ruby. Then I wrote a few aliases 'ruby191' , etc. In my .zshrc, which create a symbolic link to the ruby version I want in /tools/current_ruby . Add /tools/current_ruby/bin to your path, before any system installs the ruby and voila version, you are ready to go.
If you want the rubigems to be installed, just download rubygems.zip, switch to the version of ruby that you want to install, and then run ruby setup.rb in the rubygems directory. Now I have four different versions of ruby, each with rubygems installed, running and running on my machine.
Obviously, this only works now in cygwin, since windows do not understand symbolic links at all. But, apparently, it works fine.
source share