Hi everyone,
I recently upgraded one of my Macs to 10.6.1, and I'm having trouble
getting a Rails apps going again. There are a couple of extenuating
circumstances, and I'm hoping you guys can help me figure out what's
going on. The application is running Rails 1.1.6. I didn't write the
app, and haven't had time to bring its stack up to date.
So here is what I've done:
- I upgraded my system. It went smoothly.
- Generally following this:
http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard
- Installed 64-bit MySQL. I can successfully connect via client.
- Installed 64-bit mysql gem.
So the problem is with the mysql gem and the app. My app is running,
but any time a page tries to query the db an error is thrown.
The first weird thing I noticed is that I'm still running Ruby 1.8.6.
Everything I've read says Snow Leopard should bump the installation to
1.8.7. I'm pretty sure that's the system install. I don't remember
doing a custom build and there's nothing in /usr/local
progress:local dcrall$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.11.1]
Then I noticed that the mysql gem v2.8 requires Ruby 1.8.7 or Ruby
1.9. So I downgraded to v2.7. Now I can query objects through script/
console, but the app still bombs.
So my current thought is one of two things. One, I need to upgrade to
Ruby 1.8.7. Two, is that the problem is with the older version of the
mysql ActiveRecord adapter. I suspect that I can connect through the
console because it's actually using Rails 2.3.3 and not the older
version under vendor.
Thoughts? Suggestions?