Skip to content

Instantly share code, notes, and snippets.

@roolo
Last active December 25, 2018 07:43
Show Gist options
  • Save roolo/5006111 to your computer and use it in GitHub Desktop.
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
ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config
@ezmiller
Copy link

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.

@ilyaruby
Copy link

ilyaruby commented Feb 3, 2016

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