Skip to content

Instantly share code, notes, and snippets.

@evaldasg
Created January 30, 2019 07:00
Show Gist options
  • Save evaldasg/7677a4ab91182bcf7a4295684081d023 to your computer and use it in GitHub Desktop.
Save evaldasg/7677a4ab91182bcf7a4295684081d023 to your computer and use it in GitHub Desktop.
Install mysql2 gem when using mysql@5.7 from brew
gem install mysql2 -v '0.4.4' -- \
--with-mysql-lib=$(brew --prefix mysql@5.7)/lib \
--with-mysql-dir=$(brew --prefix mysql@5.7) \
--with-mysql-config=$(brew --prefix mysql@5.7)/bin/mysql_config \
--with-mysql-include=$(brew --prefix mysql@5.7)/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment