Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Incorrect MySQL client library version"

I'm getting the following error when running rake assets:precompile

Incorrect MySQL client library version! This gem was compiled for 5.6.10 but the client library is 5.5.12.

MySQL is installed using Homebrew and is version 5.6.10. I can connect to the database on 127.0.0.1 locally.

I've tried the following with no luck:

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

It seems that advice is for folks whose "client library" is newer than the one the Gem was compiled for. My issue is the opposite. Can't figure out where the 5.5.12 is coming from. Any ideas?

like image 460
Matt Fordham Avatar asked Sep 17 '26 20:09

Matt Fordham


1 Answers

Try:

gem uninstall mysql
gem uninstall mysql2

Then

bundle install
like image 62
DV Dasari Avatar answered Sep 20 '26 10:09

DV Dasari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!