Call Montréal, Canada 524-949-6869

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

Developing Ruby on Rails applications and custom Content Management Systems in Montréal. Contact Firsthand.