Search code examples
macosopensslhomebrewmacos-mojave

dyld: Symbol not found: _OPENSSL_init_ssl


I just installed ffsend and wget via homebrew on my MacOS (Mojave 10.14.6), and when I run the command

ffsend upload some_file.tgz

or

wget some_url some_file.tgz

I get the following:

dyld: lazy symbol binding failed: Symbol not found: _OPENSSL_init_ssl Referenced from: /usr/local/bin/ffsend Expected in: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib

dyld: Symbol not found: _OPENSSL_init_ssl Referenced from: /usr/local/bin/ffsend Expected in: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib

Abort trap: 6

I know I've had some bugs with Open SSL previously, but I have no idea of how to tackle this problem.

Thanks


Solution

  • The problem was due to a conflict between versions of OpenSSL. Some programs (wget, ffsend) needed the latest version of OpenSSL, while some other programs (not distributed) needed an older version of OpenSSL, namely 1.0.2.

    I found the solution here: after reinstalling openssl via brew reinstall openssl@1.1, I used brew switch openssl 1.0.2q.

    This way I can use both programs that need the latest version and those that use the older one.