Created
May 7, 2019 08:03
-
-
Save ck3g/98e1ba5568506dbe87fd0eff551e74d6 to your computer and use it in GitHub Desktop.
Installing Ruby gems on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some gems have issues installing on macOS. | |
There is a list of possible solutions. | |
### mysql2 | |
https://gist.github.com/fernandoaleman/ee3ac6957c2ba4f7d7d33a251d58b191 | |
``` | |
brew install openssl | |
gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include | |
``` | |
### ffi | |
https://github.com/ffi/ffi/issues/342#issuecomment-42968957 | |
``` | |
brew link libffi --force | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment