MySQL Gem on Leopard

Published: 05 Dec 2007

If you're running the Leopard Mac OS, you'll need the following command to properly install the MySQL gem:

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

This page also has some good information that tries to answer questions regarding Ruby and OS X.