Created
November 2, 2013 18:38
-
-
Save robskillington/7282087 to your computer and use it in GitHub Desktop.
Fix for mysql2 gem fails to compile with MySQL 5.6.12 on OS X with Homebrew
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
Blatantly borrowed from StackOverflow | |
Uninstall MySQL 5.6.12: | |
brew unlink mysql | |
brew uninstall mysql | |
Go to the homebrew directory: | |
cd /usr/local | |
Go to version 5.6.10 (you can find a list of versions by running brew versions mysql: | |
git checkout 48f7e86 Library/Formula/mysql.rb | |
Then install mysql again: | |
brew install mysql | |
And now gem install mysql2 works for me. | |
I've also installed mysql from source (brew install mysql --build-from-source), but that didn't solve it, but might be part of the solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment