Last active
July 31, 2022 10:32
-
-
Save jorgegorka/c135220a3385c403c02cd2a4598ba556 to your computer and use it in GitHub Desktop.
install gem mysql2 on Mac OS M1
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 zstd | |
brew install openssl | |
brew install mysql | |
# Double check that paths for openssl and zstd are valid. | |
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