just some more awesome
On my system, I installed MySQL with installer downloaded from their site, not MacPorts, or Homebrew. So, MySQL is installed at this path: /usr/local/mysql-5.1.42-osx10.6-x86_64/ I have a sym-link for that path at: /usr/local/mysql/ The following command worked for me for installing the mysql gem. env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config