dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from: /usr/local/bin/php code example

Example 1: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

brew switch openssl 1.0.2t

Example 2: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

brew update && brew upgrade
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

Example 3: dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib

brew reinstall php@<link-version>

Tags:

Php Example