bundle installがmysql2でコケるときに試すやつ

1 min read読了の目安(約400字

毎回ググるやつ。どれか試せばだいたいイケる。

bundle config --local build.mysql2 "--with-cppflags=-I/usr/local/opt/openssl/include"
bundle install
bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib"
bundle install
bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"
bundle install

上記2つの合わせ技