Blog

Saturday, July 20, 2013

mysql2 installation issues on OSX 10.8.4 (homebrew install)

Installing mysql2 Ruby gem on 10.8.4 with a home-brew install may raise the following error:

mysql.h is missing. please check your installation of mysql and try again.

Removing the following options from cflags in mysql_config vim `which mysql_config` resolved the issue:

-Wno-null-conversion -Wno-unused-private-field

Credit: https://github.com/brianmario/mysql2/issues/383

Please note this blog is no longer maintained. Please visit CivilCode Inc - Custom Software Development.