Skip to content

Instantly share code, notes, and snippets.

@Melraidin
Created June 27, 2021 02:52
Show Gist options
  • Save Melraidin/ab0e35d301f949f4d7eaa57ced1d120f to your computer and use it in GitHub Desktop.
Save Melraidin/ab0e35d301f949f4d7eaa57ced1d120f to your computer and use it in GitHub Desktop.
Fix issue with unsafe libcrypto loading: "WARNING: /Users/myuser/.rvm/rubies/ruby-2.6.3/bin/ruby is loading libcrypto in an unsafe way"
ln -s /usr/local/Cellar/openssl@1.1/1.1.1k/lib/libcrypto.dylib /usr/local/lib/libcrypto.dylib
ln -s /usr/local/Cellar/openssl@1.1/1.1.1k/lib/libssl.dylib /usr/local/lib/libssl.dylib
@Melraidin
Copy link
Author

Was receiving an error like the following when trying to run anything with Rails under rbenv:
WARNING: /Users/myuser/.rvm/rubies/ruby-2.6.3/bin/ruby is loading libcrypto in an unsafe way

The above fix worked on two different machines with fairly different configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment