10

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/php@5.6/sbin/php-fpm
  Reason: image not found

Now i have latest OpenSSL version installed. And cannot downgrade it.

Anton Vusatui
  • 381
  • 2
  • 9

4 Answers4

18

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

Anton Vusatui
  • 381
  • 2
  • 9
0

I have a good news. eXolnet published a patch for php@5.6 witch fixes openssl bug. All instructions here

Anton Vusatui
  • 381
  • 2
  • 9
0

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

juanitourquiza
  • 2,097
  • 1
  • 30
  • 52
0

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
Hans
  • 1,162
  • 11
  • 18