Installing mysql2
gem errors on MacOS Catalina with MySQL 5.7.
Make sure openssl
is installed on Mac via Homebrew.
brew install openssl
Install mysql2
gem.
gem install mysql2 -v '0.5.3' -- --with-mysql-config=$(brew --prefix [email protected])/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
Did you ever find a workaround for this? I've been doing any and everything to get the mysql2 gem installed in a rails project with no luck. I'm at Catalina 10.15.7