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

知识标签: php/mysql/apache openssl

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.




To solve this problem you need:


Go to https://www.openssl.org/source/old/ and download version you need

Open downloaded archive and then open terminal there

Run $ make clean, $ ./Configure darwin64-x86_64-cc -shared, $ make, $ make install

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

沪ICP备09053415号 © 赶知识网