arlyxiao / best-practice

1 stars 0 forks source link

Rails, openssl and mysql #11

Open arlyxiao opened 4 years ago

arlyxiao commented 4 years ago

Make sure you use openssl 1.0.2

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)"

arlyxiao commented 4 years ago

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"