Snow Leopard + MySQL + Ruby + 64-bit = #fail

Running into the following error after your Snow Leopard upgrade?

uninitialized constant MysqlCompat::MysqlRes

Then the following build line for the mysql gem might fix it for you:

ARCHFLAGS="-arch i386 -arch x86_64"  \
  gem install --no-rdoc --no-ri mysql ]] \
  -- --with-mysql-dir=/opt/local/lib/mysql5 \
  --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
This entry was posted in rails, ruby. Bookmark the permalink.

One Response to Snow Leopard + MySQL + Ruby + 64-bit = #fail

  1. Mike says:

    That’s a valuable tip. Thanks a lot!

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>