or

How to Install MySQL Gem in OS X

If you’re having trouble to install MySQL gem for rails in your OSX, follow these directions:

Make sure you have the latest version of rubygems. You can download it from RubyForge.

$ sudo gem install <your_downloads_folder>/rubygems-update-1.3.1.gem
$ sudo update_rubygems

Now we have rubygems installed and ready to go :)

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

And that’s it. Everything is up and running.



Leave a Reply

Name (required)
Mail (required)
Website