DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Install MySQL RubyGem
If you installed MySQL via MacPorts then the following should work.
sudo gem install mysql --remote -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config