Skip to content

Instantly share code, notes, and snippets.

@cesare
Created October 22, 2012 03:14
Show Gist options
  • Save cesare/3929454 to your computer and use it in GitHub Desktop.
Save cesare/3929454 to your computer and use it in GitHub Desktop.
script to fix the search path of mysql2.bundle installed on MacOSX
#!/bin/bash
mysql_libdir='/usr/local/mysql/lib'
dylib_name='libmysqlclient.18.dylib'
dylib_path="${mysql_libdir}/${dylib_name}"
install_name_tool -change ${dylib_name} ${dylib_path} $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment