Created
August 20, 2012 22:08
-
-
Save dwinph/3408388 to your computer and use it in GitHub Desktop.
Instam mysql gem on Mountain Lion
This file contains 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 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