Created
December 19, 2011 19:28
-
-
Save iamvery/1498512 to your computer and use it in GitHub Desktop.
"Fix" mysql2 gem installation on Mac OSX
This file contains 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
# 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