Installing Mysql Gem on Mac OSX 10.5

  • Share/Bookmark

By Chris Hazlett in Software.

I’m playing with Mephisto tonight and I am making the trek deeper into Rails 2.2.2. For those of you who have been living in the land of 2.0.2 and 2.1, you probably haven’t run into the installation of the MySQL gem.

Typically, I would just write at bash:

sudo gem install mysql

Unfortunately, that fails on my OSX 10.5/MySQL install. The trick:

sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config

The did it for me. Thanks to Benjamin Michael. Read his original post.

UPDATE

After much consternation and some initial successes, the mysql gem still does not work. It won’t hook into my MySQL install. I’ve been working with this solution, but after several hours… nothing has come of it.

UPDATE 2

So I finally got the MySQL 2.7 Gem working with MySQL. I took the solution above, but changed it slightly. I reinstalled MySQL 5.1.8 from the MySQL site, but this time, I installed the 32 bit version. Then I uninstalled the MySQL gem. Then I simply reinstalled the gem with the same line above. And Bob’s your uncle, you’ve got a working MySQL 2.7 gem.

0 comments
 
 
 
 
Send message
0 comments