Open arlyxiao opened 4 years ago
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
brew switch openssl 1.0.2t gem uninstall mysql2 brew install openssl gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)"
gem install mysql2 -v '0.4.10' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
gem install mysql2 -- --with-opt-dir="/usr/local/Cellar/openssl/1.0.2t"
Make sure you use openssl 1.0.2
brew switch openssl 1.0.2t gem uninstall mysql2 brew install openssl gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)"