Created
September 16, 2020 20:13
-
-
Save Wilker/7c1984337c532c6860c0b69e2c947e8f to your computer and use it in GitHub Desktop.
Install mysql2 with mysql installed via brew on MacOS High Sierra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```` | |
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