🦍

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

2020/09/18に公開

M1 Mac

bundle config --local build.mysql2 "--with-opt-dir=/opt/homebrew/opt/openssl@1.1 --with-ldflags=-L/opt/homebrew/Cellar/zstd/1.5.0/lib"
bundle install

opensslのパスは brew --prefix opensslでわかる


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

Discussion