Skip to content

Instantly share code, notes, and snippets.

@jpalumickas
Forked from fernandoaleman/mysql2-mojave.md
Created December 2, 2019 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpalumickas/03c85feee1ad88d347125d5d1735b291 to your computer and use it in GitHub Desktop.
Save jpalumickas/03c85feee1ad88d347125d5d1735b291 to your computer and use it in GitHub Desktop.
Install mysql2 on MacOS Mojave

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment