dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
1 min readSep 27, 2020
Maybe you found any error with this description when you try to do composer update
or maybe just check php version php -v
:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
[1] 87870 abort php -v
For fix this issue, you need to try to update brew to latest version:
brew update
brew upgrade
If you already update to the latest version, but you still facing this issue. There are two another way:
- Change OpenSSL Version
brew switch openssl 1.0.2s
2. Remove and Install clean PHP
brew rm php
brew fetch -f php
brew install php
Conclusion
Somehow, there can be a bug Library not loaded when you try to do installation in homebrew. So, for fix it, make sure you do some clean installation with your package again.