Saturday, May 10, 2008

gem install mysql mac osx leopard

gem install mysql -- --with-mysql-config=`which mysql_config`

Also you may need some additional hacking to get it all working.

3 comments:

Anonymous said...

On my leopard with ports installed mysql I need to run

sudo gem install mysql -- --with-mysql-config=`which mysql_config5`

Mark Swardstrom said...

After this, I started to get an error:

dyld: lazy symbol binding failed: Symbol not found: _mysql_init

I needed to run the following to fix it:

sudo env ARCHFLAGS="-arch x86_64" gem install -V mysql -- --with-mysql-include=/usr/local/mysql/include/ --with-mysql-lib=/usr/local/mysql/lib --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql

This comes from here:

http://blog.bmn.name/2008/02/issues-with-mysql-27-gem/

Good times...

Anonymous said...
This comment has been removed by a blog administrator.