1
0

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 3 years have passed since last update.

エラー解決(メモ)An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue.と、Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds before bundling.

Last updated at Posted at 2021-03-21

状況

$ bundle install

を実行しようとしたらエラーが発生

①下記を入力


$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib"

②Gemfileに

gem 'mysql2', '~>0.5.3'

を書いて、

bundle install

を実行する

#####参照記事
https://qiita.com/KKDDD/items/0ec0a4d11c1ff8330f3d

1
0
1

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?