Skip to content

Instantly share code, notes, and snippets.

@dwinph
Created August 20, 2012 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwinph/3408388 to your computer and use it in GitHub Desktop.
Save dwinph/3408388 to your computer and use it in GitHub Desktop.
Instam mysql gem on Mountain Lion
export CC=/usr/bin/gcc-4.2
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/Cellar/mysql --with-mysql-lib=/usr/local/Cellar/mysql/5.5.25a/lib/ --with-mysql-include=/usr/local/mysql/5.5.25a/include --with-mysql-config=/usr/local/Cellar/mysql/5.5.25a/bin/mysql_config
# in .bash_profile
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
# From : https://simple-note.appspot.com/publish/pGTcJ7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment