Daily Crumbs

October 19th, 2006

Setting up latest mysql on Rails

Posted by Administrator in Observations | Edit

Need to add “#define ulong unsigned long”
to mysql.c in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
Otherwise, the Mysql.c wont compile to mysql.o and gives error

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

reference

RIGHTSIDE