Last active
December 25, 2018 07:43
-
-
Save roolo/5006111 to your computer and use it in GitHub Desktop.
Fixing "Incorrect MySQL client library version! This gem was compiled for 5.5.29 but the client library is 5.6.10. (RuntimeError)" on OS X while using Brew
This file contains hidden or 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
ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config |
I'm getting this version of this error, and neither of the suggestions above helped, sadly:
Incorrect MySQL client library version! This gem was compiled for 5.5.27 but the client library is 5.6.22.
There is an error in this gist.
Here, use "--with-mysql-config" instead of "–with-mysql-config" (note two short dashes instead of a long one).
If this fails to update a mysql2 then one could just use an another RVM ruby version or a new separate RVM gemset.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is sad :(