Created
February 28, 2011 23:38
-
-
Save rdj/848283 to your computer and use it in GitHub Desktop.
Installing mysql gem on Snow Leopard
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
| export DYLD_LIBRARY_PATH=/usr/local/mysql/lib | |
| ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=`which mysql_config` |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, this didn't work. The reason the export fixed it is because it was then set for subsequent runs. The only fix seems to be the ridiculous:
install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib ~/.rvm/rubies/${RUBY_VER}/lib/ruby/gems/1.8/gems/mysql-${MYSQL_GEM_VER}/lib/mysql.bundle