“Incorrect MySQL client library version”

夙愿已清 提交于 2019-12-10 19:45:27

问题


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?


回答1:


Try:

gem uninstall mysql
gem uninstall mysql2

Then

bundle install


来源:https://stackoverflow.com/questions/22518764/incorrect-mysql-client-library-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!