Meditations, Musings and Memorial Stones

AVANIM :: TecHarmony :: Installing mysql gem on OSX Snow Leopard

Installing mysql gem on OSX Snow Leopard

May 13, 2010 | Comments: 2
With Rails 2.2, the bundled mysql.rb driver has been removed, so if you haven't installed the mysql gem before, you will have to do so now. To save yourself a lot of trial and error, try this first:
sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Comments

When I initially installed Rails it took me forever to discover that this is what I needed to do to install the mysql gem. Thanks for putting this together and putting it in a public place.


Michael Berkompas on May 13, 2010 at 12:21 PM

Of course, things are now much simpler with the advent of gemsets in RVM


Andrew on December 21, 2010 at 08:19 AM

Post a comment


(required, but not displayed)

(optional)


(required)