Rails OSX Problems

Posted by Bart ten Brinke Tue, 03 Jul 2007 08:57:16 GMT

After updating my MacBook yesterday, I found myself with a broken rails. I reinstalled Rubygems, but this gave me some strange problems when installing gems:

   bart$ sudo gem install mongrel
   Building native extensions.  This could take a while...
   Successfully installed mongrel-0.3.3
   Installing ri documentation for mongrel-0.3.3...
   Installing RDoc documentation for mongrel-0.3.3...
   bart$ sudo gem install mongrel_cluster
   Install required dependency mongrel? [Yn]  Y
      ERROR:  While executing gem ... (Gem::GemNotFoundException)
       Could not find mongrel (>= 0.3.13.4) in any repository

But when I looked at the versions, it said 1.0.1 of mongrel was available. After some help of Andre, we found out the problem: Ruby. As the OSX update had trashed my .bashrc path settings, I got the old ruby version packed with darwin (1.8.2) instead of the fink version (1.8.5). This causes the strange problems like the one above, as mongrel requires a newer version of ruby. Making the path look in /usr/local/bin before anything else cleared up everything nicely.

Posted in ,  | Tags , , ,  | no comments