The reason was that the Mysql files are installed under version specific directories and files when installing from Macports. For example, mysql5
or /opt/local/lib/mysql5
. This messes up the mysql gem installation because it looks elsewhere by default. The solution is to specify the exact mysql config location in the installation process:
That last line is two dashes (-) followed by the --with-mysql-config
option.
Easy as pie.