Friday, March 23, 2007

Update Mysql Gem problem

I just tried to update gems and got a problem with mysql (on my macbook)
I got the following errors.

checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no

Googling around I found a post with the answer..
$ sudo gem install mysql -- --with-mysql-config 
This worked great.

I have no idea what the error messages meant, or why this fixes it, so I thought I should share it or risk forgetting it :)

Anyone care to enlighten me?
Post a Comment

GitHub Projects