Skip to content

Instantly share code, notes, and snippets.

@pixelpogo
Created September 19, 2011 21:55
Show Gist options
  • Save pixelpogo/1227729 to your computer and use it in GitHub Desktop.
Save pixelpogo/1227729 to your computer and use it in GitHub Desktop.
How to install mysql gem on Mac OS X Lion 10.7
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
env ARCHFLAGS="-arch x86_64" gem install mysql -v='2.8.1' -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
# and add this line to your .bash_profile
# export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment