dyld:库未加载:/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib, php-fpm, php5.6

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

我在 Mac OS 上使用 php5.6,并且php-fpm 抛出一个问题:

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

现在我安装了最新的 OpenSSL 版本。而且不能降级。

要解决这个问题你需要:

  1. 前往 https://www.openssl.org/source/old/ 并下载您需要的版本
  2. 打开下载的存档,然后在那里打开终端
  3. 运行 $ make clean, $ ./Configure darwin64-x86_64-cc -shared, $ make, $ make install
  4. libcrypto.1.0.0.dyliblibssl.1.0.0.dylib放到/usr/local/Cellar/openssl/lib/

现在可以用了(对我来说)!

有个好消息。 eXolnet 发布了 php@5.6 的补丁 修复了 openssl 错误。 All instructions here

macOS Catalina 完美解决PHP7.2,这一行:

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

富恩特:

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

对我来说,以下是有效的(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