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.


marcushd said...

On my leopard with ports installed mysql I need to run

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

Swards 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:

Good times...

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