Monday, November 03, 2008

Mysql and Ruby on Rails with OSX Leopard

To get mysql working on leopard. Run:


sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-include=/usr/local/mysql/include

then

cd /usr/local/mysql/lib
sudo mkdir mysql
sudo cp libmysqlclient.15.dylib mysql/libmysqlclient.15.dylib

It is a hack, but got it to compile for me.

No comments: