I am using a php5.6 on my Mac OS, and php-fpm throws an issue:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/opt/[email protected]/sbin/php-fpm
Reason: image not found
Now i have latest OpenSSL version installed. And cannot downgrade it.
MacOS developed and distributed by Apple is surely one of the most reliable Operating System out there. It is used mostly by professionals who intend to use their computers for business purposes. However, quite recently a lot of reports have been coming in of a “Dyld: Library Not Loaded” Error on MacOS.
uninstall those packages brew uninstall [name] then run brew doctor to verify if everything is ok. Then you can reinstall those packages again after brew update && brew upgrade. My recommendation is to never lower your openssl lib version for the sake of getting your build to work.
To fix the error do the following. It installs Homebrew (a package manager for macOS) and installs OpenSSL for https connections. There are 2 uninstall commands below to first remove OpenSSL v1.1, then remove any dead OpenSSL v1.0, before installing a custom OpenSSL v1.0 formula which works without having to build with Xcode.
Just make sure you create the exact erring lib version (1.0.0, 1.0.1, or 1.0.2), depending on the error you are getting. It automatically updates mysql server compatible with openssl.
To solve this problem you need:
$ make clean
, $ ./Configure darwin64-x86_64-cc -shared
, $ make
, $ make install
/usr/local/Cellar/openssl/lib/
And now it works (For me)!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With