Update: Fixing Rails in Snow Leopard

I was too quick to declare success in my update to Snow Leopard earlier this week.  As it turns out, much of my recovered space came from Xcode being uninstalled.  Easy fix.  Grabbed the DVD and installed it in a few minutes.  After doing some deeper checking, I found anything with native extensions or compiled with Leopard was not working.  Thanks for the heads up Apple.

With the move to 64 bit, my older 32-bit version of MySQL was moved to /usr/local/mysql-5.0.45-osx10.4-i686.  Grabbed the latest and installed the 64-bit version.  You may want to skip the preferences pane since it runs in 32-bit and causes the System Preferences to reload each time.

Macports needed a fresh install as well.  After that I needed to clean out the old builds with:

$ sudo port -f uninstall installed

This wiped everything out and I needed to reinstall my ports. As expected my gems were in need of help as well.  Although most were resolved with the following:

$ sudo gem update

the MySQL gem needed some help finding it’s cousins:

$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Finally, Mongrel decided to hang during the startup and WEBrick as no better.  Had to grab Thin.  Worked like a champ.  Note to self: need to switch to Passenger for development.

I’m sure I’m missing a few things, but right now, most things seem to be working.  I’ll update this post if I find anything else.

Update: Mongrel can be fixed by uninstalling mongrel and fast thread and reinstalling mongrel:

$ sudo gem uninstall mongrel fastthread
$ sudo gem install mongrel
This entry was posted in Technology and tagged , , , , , , , . Bookmark the permalink.

3 Responses to Update: Fixing Rails in Snow Leopard

  1. Jeff says:

    Thank you thank you thank you. I was going nutts with the stupid mongrels not working! I am too new to RoR to have figured that out w/o this article.

  2. Darian Shimy says:

    So glad I could help!

  3. Rob DeCarlo says:

    I was going nuts! You are the only guy anywhere with an answer to this problem. Thanx SO much! Wish I had a blog so I could link back.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">