Installing the MySQL gem on OSX 10.6 (Snow Leopard) with MacPorts MySQL5
Took a while to work this command out. Hopefully it can save someone else some time.
sudo port install mysql5-server
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
You can verify that I've written this post by following the verification instructions:
curl -LO http://barkingiguana.com/2010/03/02/installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig
curl -LO http://barkingiguana.com/2010/03/02/installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig.asc
gpg --verify installing-the-mysql-gem-on-osx-106-snow-leopard-with-macports-mysql5.html.orig{.asc,}
If you'd like to have a conversation about this post, email craig@barkingiguana.com. I don't bite.