Skip to content

Instantly share code, notes, and snippets.

@Wilker
Created September 16, 2020 20:13
Show Gist options
  • Save Wilker/7c1984337c532c6860c0b69e2c947e8f to your computer and use it in GitHub Desktop.
Save Wilker/7c1984337c532c6860c0b69e2c947e8f to your computer and use it in GitHub Desktop.
Install mysql2 with mysql installed via brew on MacOS High Sierra
````
gem install mysql2 -v 'YOUR.VERSION.HERE' -- --with-mysql-config=/usr/local/opt/mysql-client/bin/mysql_config \
--srcdir=/usr/local/opt/mysql/include --platform=ruby \
--with-ldflags=-L/usr/local/opt/openssl/lib \
--with-cppflags=-I/usr/local/opt/openssl/include
```
On Mojave, High Sierra, or Catalina, using homebrew.
https://gist.github.com/fernandoaleman/ee3ac6957c2ba4f7d7d33a251d58b191#gistcomment-2910891
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment