Skip to content

Instantly share code, notes, and snippets.

@Bivek
Created March 12, 2024 01:30
Show Gist options
  • Save Bivek/3c470ed9153d6a099870019ef469bd85 to your computer and use it in GitHub Desktop.
Save Bivek/3c470ed9153d6a099870019ef469bd85 to your computer and use it in GitHub Desktop.
MySQL Gem Install Workaround
# Getting clang error while installing mysql gem in macos
# Try this it might solve your issue or try trinity gem instead
gem install mysql2 -v '0.5.5' -- --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