Skip to content

Instantly share code, notes, and snippets.

@dan
Last active May 7, 2022 14:59
Show Gist options
  • Save dan/5e6fcc17c21d7b03effc28c75dc97e55 to your computer and use it in GitHub Desktop.
Save dan/5e6fcc17c21d7b03effc28c75dc97e55 to your computer and use it in GitHub Desktop.
How to Install the mysql2 Gem on M1 Macs
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