Anton Vusatui
Anton Vusatui

Reputation: 381

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.

Upvotes: 10

Views: 7448

Answers (4)

Hans
Hans

Reputation: 1544

For me following worked (macOS Catalina with PHP 7.1)

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

Upvotes: 0

juanitourquiza
juanitourquiza

Reputation: 2194

The perfect solution in macOS Catalina with PHP 7.2, this line:

brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

Fuente:

https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

Upvotes: 0

Anton Vusatui
Anton Vusatui

Reputation: 381

I have a good news. eXolnet published a patch for [email protected] witch fixes openssl bug. All instructions here

Upvotes: 0

Anton Vusatui
Anton Vusatui

Reputation: 381

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)!

Upvotes: 18

Related Questions