Monday, July 30. 2007MacPortsI have a situation where I need to switch back and forth between two different versions of Ruby. I'm doing some work for one of my clients which is based on Ruby 1.8.6 and I'm also working on the EasyBrandingTools.com site which is based on Ruby 1.8.4.
Ruby 1.8.6 has a particularly nasty bug in its XPATH support which completely breaks EasyBrandingTools.com so we are unable to upgrade to that version until this bug is fixed. I did some digging through the MacPorts documentation and discovered that it didn't remove the 1.8.4 installation when it upgraded to 1.8.6 and since both versions are there, I can easily switch between them by deactivating one and activating the other. The magic to do that is... sudo port deactivate ruby @1.8.6_0 This makes it very easy to support multiple different versions of Ruby on the same machine and saves me a lot of configuration grief. Trackbacks
Trackback specific URI for this entry No Trackbacks
|