Skip to content

Instantly share code, notes, and snippets.

@rdj
Created February 28, 2011 23:38
Show Gist options
  • Select an option

  • Save rdj/848283 to your computer and use it in GitHub Desktop.

Select an option

Save rdj/848283 to your computer and use it in GitHub Desktop.
Installing mysql gem on Snow Leopard
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib
ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=`which mysql_config`
@rdj
Copy link
Copy Markdown
Author

rdj commented Mar 1, 2011

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

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