Fixing "dyld: Library not loaded: libcrypto.1.0.0.dylib" errors with MacPorts
Brian Porter
2020-02-09
Documenting this for myself. If you’re a MacPorts user, and some tool you use (such as GitX) depends on openssh-1.0.0 specifically, you may see errors like this:
$ gitx
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced from: /Applications/GitX.app/Contents/Frameworks/ObjectiveGit.framework/Versions/A/ObjectiveGit
Reason: image not found
Abort trap: 6
The fix is to install the openssh10 package, and then add the appropriate symlinks to your system:
$ sudo port install openssl10
$ sudo ln -s /opt/local/lib/openssl-1.0/libcrypto.1.0.0.dylib /opt/local/lib/libcrypto.1.0.0.dylib
$ ln -s /opt/local/lib/openssl-1.0/libssl.1.0.0.dylib /opt/local/lib/libssl.1.0.0.dylib