I\'ve upgraded to Rails 2.2.2 and installed the MySQL 2.7 gem and am seeing this error when I try to run a migration or start the server:
dlopen(/Library/Rub
Using sudo can often lead to unexpected issues. What worked for me was uninstalling the mysql2 gem and reinstalling it.
gem uninstall mysql2 bundle
gem uninstall mysql2
bundle