🦍

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

1 min read

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

ログインするとコメントできます