[Solved] Error while Installing mysql2 Gem in M1 Mac
![cover: [Solved] Error while Installing mysql2 Gem in M1 Mac](https://d33wubrfki0l68.cloudfront.net/c904097f0b39afba4bc2b943d848bf1f372435d9/b5e84/static/f5b8999323303e8ccaf567e19aff444f/99768/error-while-installing-mysql2-in-m1-mac.webp)
In Ruby on Rails applications with mysql2 gem, mysql2 gem always threw error when trying in the new M1 Mac. The error always said "ld: library not found for -lzstd" and "make failed".
Small, bite sized content I've written. For longer, more thorough writing — peruse the articles section.