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 update_rubygems
Now we have rubygems installed and ready to go :)
And that’s it. Everything is up and running.