bundle install mysql 2로 복사할 때 시도한 녀석

768 단어 RailsRubytech
M1 Mac
bundle config --local build.mysql2 "--with-opt-dir=/opt/homebrew/opt/[email protected] --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

좋은 웹페이지 즐겨찾기