Skip to content

Instantly share code, notes, and snippets.

@iamvery
Created December 19, 2011 19:28
Show Gist options
  • Save iamvery/1498512 to your computer and use it in GitHub Desktop.
Save iamvery/1498512 to your computer and use it in GitHub Desktop.
"Fix" mysql2 gem installation on Mac OSX
# change this variable to the appropriate libmysqlclient lib version
VERSION=18
# change this variable to the path to your mysql2 gem
MYSQL_GEM_PATH=~/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.7
sudo install_name_tool -change libmysqlclient.$VERSION.dylib /usr/local/mysql/lib/libmysqlclient.$VERSION.dylib $MYSQL_GEM_PATH/lib/mysql2/mysql2.bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment