Home > Ruby on Rails > Problem installing native Ruby MySQL driver on OS X

Problem installing native Ruby MySQL driver on OS X

October 15th, 2007

In case anyone else has the same problem installing the native Ruby MySQL driver onto their Mac, here is the fix that worked for me.

I was upgrading my install using the HiveLogic instructions and kept getting the following error every time I went to install the mysql gem.

mysql.c: In function 'Init_mysql':
mysql.c:2015: error: 'ulong' undeclared (first use in this function)
mysql.c:2015: error: (Each undeclared identifier is reported only once
mysql.c:2015: error: for each function it appears in.)
mysql.c:2015: error: parse error before numeric constant
mysql.c:2018: error: parse error before numeric constant
make: *** [mysql.o] Error 1

A little Googling later, and I found a solution on the jlaine.net website. There are several other solutions listed in the comments as well.

Categories: Ruby on Rails Tags:
Comments are closed.