0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mysql2がldflagsのオプション使ってもbundle installできない

Posted at

以前試した奴がうまくいかなかった。

以前解決した方法はこちら。
Rails 5.2.3でmysql2がbundle isntallできない

下記のようになってconfigの中身を書き換えて、何度もやっていると当然っちゃ当然ですがリプレイスされただけの結果しか生まれない

You are replacing the current local value of build.mysql2, which is currently "--with-ldflags=-L/usr/local/opt/openssl/lib"

ほう?お前、別件エラーだな?

どうやらまたmysql2の別のエラーのようです。
散々探し回ってようやく見つけた答えがこちらです。

mysql2 (>= 0.3.13, < 0.5)

mysql2 (~> 0.4.10)

にバージョンをあげてあげることです。

githubの方にもissueが上がっておりました。
Support mysql2 0.4.x and 0.5.x #32310

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?