Skip to content

Instantly share code, notes, and snippets.

@calebwoods
Created September 30, 2011 19:13
Show Gist options
  • Select an option

  • Save calebwoods/1254706 to your computer and use it in GitHub Desktop.

Select an option

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.
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
@joshkraemer

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment