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

时间:2019-12-10 07:29:32

标签: php macos openssl homebrew php-5.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版本。而且无法降级。

4 个答案:

答案 0 :(得分:1)

要解决此问题,您需要:

  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.dylib libssl.1.0.0.dylib 放入/usr/local/Cellar/openssl/lib/

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

答案 1 :(得分:0)

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

答案 2 :(得分:0)

macOS Catalina中使用PHP 7.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

答案 3 :(得分:0)

对我来说,以下工作有效(带有PHP 7.1的macOS Catalina)

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