Skip to content

Instantly share code, notes, and snippets.

@mrsweaters
Created September 5, 2019 18:43
Show Gist options
  • Save mrsweaters/61b57b5d63ac92f96058feb3ea77cd4a to your computer and use it in GitHub Desktop.
Save mrsweaters/61b57b5d63ac92f96058feb3ea77cd4a to your computer and use it in GitHub Desktop.
ld: library not found for -lssl error
To fix for a manual gem install:
brew install openssl
gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)"
To fix for all bundle installs:
brew install openssl
bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)"
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment