LoginSignup
1
1

More than 5 years have passed since last update.

Rails(トラブル編)

Last updated at Posted at 2014-01-08

どん詰まりした

Incorrect MySQL client library version! This gem was compiled for 5.6.13 but the client library is 5.5.27

mysqlを立ち上げた時のversionは

Server version: 5.6.13 MySQL Community Server (GPL)

だけどclient library is 5.5.27と言っている。
解決策を探しこんな風にすればいいとか

sudo ARCHFLAGS=”-arch x86_64″ gem install mysql2 — –with-mysql-config=/usr/local/bin/mysql_config

やってみるもダメ。

whichでmysql探すも

/usr/local/mysql/bin/mysql

そして起動すると5.6.13
わからん。
で、わかりました。

/usr/local/Cellar/mysql

にもmysqlが。中身を除くと
「5.5.27」

ですね。

起動するも、
「Library not loaded: libmysqlclient.18.dylib (LoadError)」

これは

ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

で対応。

これで無事動いた。

ということで、mysql単体とbrewでmysqlを入れている人、注意

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1