Skip to content

Instantly share code, notes, and snippets.

@ntamvl
Forked from roolo/mysql2-gem-install.sh
Created November 3, 2015 08:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntamvl/992be4f72abf434daeac to your computer and use it in GitHub Desktop.
Save ntamvl/992be4f72abf434daeac 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
@ntamvl
Copy link
Author

ntamvl commented Nov 3, 2015

env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/usr/local/bin/mysql_config

@ntamvl
Copy link
Author

ntamvl commented Nov 3, 2015

Fixed: gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment