Skip to content

Instantly share code, notes, and snippets.

@ck3g
Created May 7, 2019 08:03
Show Gist options
  • Save ck3g/98e1ba5568506dbe87fd0eff551e74d6 to your computer and use it in GitHub Desktop.
Save ck3g/98e1ba5568506dbe87fd0eff551e74d6 to your computer and use it in GitHub Desktop.
Installing Ruby gems on macOS
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