Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib, php-fpm, php5.6

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.

like image 267
Anton Vusatui Avatar asked Dec 10 '19 07:12

Anton Vusatui


People also ask

Is “dyld library not loaded” error on macOS?

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.

How to fix OpenSSL Lib version is too low in Brew?

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.

How do I Fix This OpenSSL error on Mac?

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.

How to update MySQL Server compatible with OpenSSL?

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.


1 Answers

To solve this problem you need:

  1. Go to https://www.openssl.org/source/old/ and download version you need
  2. Open downloaded archive and then open terminal there
  3. Run $ make clean, $ ./Configure darwin64-x86_64-cc -shared, $ make, $ make install
  4. Put libcrypto.1.0.0.dylib and libssl.1.0.0.dylib to the /usr/local/Cellar/openssl/lib/

And now it works (For me)!

like image 85
Anton Vusatui Avatar answered Oct 22 '22 11:10

Anton Vusatui