An error occurred while installing mysql2 (0.4.10), and Bundler cannot continue. Make sure that `gem install mysql2 -v ‘0.4.10’ –source ‘https://rubygems.org/’` succeeds before bundling.

投稿者:

bundle install できない場合
$ brew info openssl
$ export LDFLAGS=”-L/usr/local/opt/openssl/lib”
$ export CPPFLAGS=”-I/usr/local/opt/openssl/include”
$ bundle config –local build.mysql2 “–with-cppflags=-I/usr/local/opt/openssl/include”
$ bundle config –local build.mysql2 “–with-ldflags=-L/usr/local/opt/openssl/lib”
$ bundle install –path vendor/bundle

Thank you for reading this post, don't forget to subscribe!