Created
September 30, 2011 19:13
-
-
Save calebwoods/1254706 to your computer and use it in GitHub Desktop.
MySQL Issue RVM: Run this command from terminal to fix the mysql2 issues with rvm. Assumes the gem is installed in the global gemset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.3-p0@global/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If MAMP's MySQL is set as the default MySQL version when running "which mysql", tell the gem to use the MySQL config from the other MySQL installation:
gem install mysql2 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config