Danger: MacPorts Breaks Your Rails/Ruby Relationship

So I just spent a fun morning trying to work out why so many of our unit tests were breaking on my machine with the message:

undefined method `[]' for #<Enumerable:

I turns out that Ruby 1.8.7 doesn’t run Rails very well, and if you take the time to read the small print it’s clear you really need to just run 1.8.6.

Trouble is, the wonderful MacPorts is now installing 1.8.7.

I have been fumbling around for the past few days installing/building various versions of things like memcached to get our app to work on my OSX 10.4. It’s been a lonely furrow to plough - all the other devs in the office are hard-core emacs / ubuntu heads, and it seems like most Mac people have moved on to Leopard these days…

At some point I must have made the mistake of running

# DO NOT RUN THIS!
sudo port upgrade ruby

So be warned, people.

Last Modified: Thursday, July 31st, 2008 @ 14:08

This entry was posted on Thursday, July 31st, 2008 at 3:06 pm and is filed under Linux / OS X Newbie Tips. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Danger: MacPorts Breaks Your Rails/Ruby Relationship”

  1. […] Danger: MacPorts Breaks Your Rails/Ruby Relationship 31 07 2008 […]

Leave a Reply