Last active
May 7, 2022 14:59
-
-
Save dan/5e6fcc17c21d7b03effc28c75dc97e55 to your computer and use it in GitHub Desktop.
How to Install the mysql2 Gem on M1 Macs
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
brew install mysql openssl zstd | |
gem install mysql2 -v '0.5.4' -- --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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment