“MySQL客户端库版本不正确”

运行rake assets:precompile时出现以下错误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使用Homebrew安装,版本为5.6.10。 我可以在本地连接到127.0.0.1上的数据库。

我试过以下没有运气:

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

似乎建议适用于那些“客户端库”比Gem编译的客户端更新的人。 我的问题恰恰相反。 无法弄清楚5.5.12的来源。 有任何想法吗?

尝试:

 gem uninstall mysql gem uninstall mysql2 

然后

 bundle install