The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Tuesday, 24 November 2009

How to install mysql gem on Mac

Download and install the x86 version of MySql, the run the following command:

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

This should be enough to have the mysql gem installed

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home