mysql2-mojave.md For MacOS Catalina, visit Install mysql2 on MacOS Catalina Problem Installing mysql2 gem errors on MacOS Mojave. Solution Make sure openssl is installed on Mac via Homebrew. brew install openssl Install mysql2 gem. gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
![Install mysql2 on MacOS Mojave · GitHub](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)