dyld: warning, unknown environment variable: DYLD_FALLBACK_LIBRARY_PATH

Error:

bug

log:

dyld: warning, unknown environment variable: DYLD_FALLBACK_LIBRARY_PATH ..... => dyld: Library not loaded: /usr/local/opt/openssl/lib/libsl.1.0.0.dylib

Reason

brew install openssl on Mac chooses OpenSSL v.1.1.0 instead of 1.0.0 so it would not be possible to find the needed version 4 MariaDB libssl.1.0.0 to load as dynamic class path.

Counter that: just add libssl.1.0.0 as an environment variable.

Steps

  1. Download files libssl.1.0.0.dylib, libcrypto.1.0.0.dylib here:

https://github.com/lei-hsia/beautiful-books/tree/master/ssl

  1. Put them at ~/Desktop for instance, copy to /usr/local/lib:

cp Desktop/libssl.1.0.0.dylib Desktop/libcrypto.1.0.0.dylib /usr/local/lib

Why /usr/local/lib: it's the environment variable default library path. No need to source xxx

  1. cd /usr/local/Cellar/openssl@1.1/lib, remove existing soft links (cuz u r going to use these links): . Notice it might be different on ur mac at openssl@1.1.

    rm-sl

  2. cd /usr/local/lib, create 2 soft links:

  • sudo ln -s libssl.1.0.0.dylib libssl.dylib
  • sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib
2

ll: should be able to see this:

  • libssl.dylib@ -> libssl.1.0.0.dylib
  • libcrypto.dylib@ -> libcrypto.1.0.0.dylib

Supplementary:

OpenSSL:

https://github.com/openssl/openssl