-
-
Save mchlggr/debf36194811eb4ad97af0b5f33c11c5 to your computer and use it in GitHub Desktop.
Revisions
-
fernandoaleman created this gist
Nov 11, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # Problem Installing `mysql2` gem errors on m1 Mac. # Solution Make sure `mysql`, `openssl` and `zstd` are installed on Mac via Homebrew. ``` brew install mysql openssl zstd ``` Install `mysql2` gem. ``` gem install mysql2 -v '0.5.3' -- --with-mysql-config=$(brew --prefix mysql)/bin/mysql_config --with-ldflags="-L$(brew --prefix zstd)/lib -L$(brew --prefix openssl)/lib" --with-cppflags=-I$(brew --prefix openssl)/include ```