Problem Installing mysql2 gem errors on MacOS Mojave. Solution Make sure openssl is installed on Mac via Homebrew. brew install openssl