NYULibraries / spatial_data_repository

NYU's GeoBlacklight instance @ geo.nyu.edu
https://geo.nyu.edu
6 stars 2 forks source link

mysql2 gem fails to install on a fresh M1 Mac #326

Closed spilth closed 2 months ago

spilth commented 3 months ago

I thought this problem was resolved by upgrading to version 0.5.6 of the mysql gem but I just set everything up on a fresh M1 Air and bundle install fail due to this gem.

Per @mnyrop's finding in Slack, doing the following works:

gem install mysql2 -v '0.5.6' -- --with-opt-dir=$(brew --prefix openssl) --with-ldflags=-L/opt/homebrew/opt/zstd/lib

We should add this gotcha to the README

spilth commented 2 months ago

This was addressed in #327