Skip to content

Gem Installation gotchas and solutions

Lora Woodford edited this page Jan 12, 2024 · 7 revisions

Running into hiccups when running bundle install? Check the section below for your system (Mac, Windows, etc.) for potential solutions.

Mac

libv8

OSX (Catalina):

brew install v8
gem install libv8 -v '3.16.14.19' -- --with-system-v8

mysql2

OSX (Catalina, Big Sur):

brew install mysql@5.7
gem install mysql2 -v '0.5.3' -- --with-mysql-config=$(brew --prefix mysql@5.7)/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include

Source: https://gist.github.com/fernandoaleman/12698634824f5d5c00ab57b72ee2ad52

Windows