首页 > 解决方案 > dyld:库未加载:/usr/local/php5/lib/libssh2.1.dylib

问题描述

简而言之,问题是:

curl --v

结果为:

dyld: Library not loaded: /usr/local/php5/lib/libssh2.1.dylib 
Referenced from: /usr/local/bin/curl 
Reason: image not found

在 MacOS Big Sur 11.2.1 上。所以有两个问题:

  1. 我该如何解决?
  2. (只是出于好奇)为什么系统安装的curl依赖于php5?

无效的解决方案:

  1. brew update && brew upgrade
  2. brew install curl&brew reinstall curl
  3. 此线程中的所有内容,尤其是此评论

提前致谢。

标签: phpmacoscurlhomebrew

解决方案


解决方案

brew install libssh2
brew link libssh2

这需要

brew link --overwrite libssh2

就我而言。但这成功了。

显然,libssh2 链接已过时。


推荐阅读