[Homebrew (brew) FAQs] Homebrew (brew) FAQs

Homebrew (brew) FAQs

The Missing Package Manager for macOS (or Linux)

dyld: Library not loaded: /usr/local/opt/ldns/lib/libldns.3.dylib

This is expected since ldns was upgraded, but --with-ldns is a non-default option for openssh. You’ll need to brew reinstall ldns or brew reinstall openssh to make it go away.

1
2
3
4
5
6
7
8
9
$ ssh
dyld: Library not loaded: /usr/local/opt/ldns/lib/libldns.3.dylib
Referenced from: /usr/local/bin/ssh
Reason: image not found

$ brew reinstall ldns

# Or
$ brew reinstall openssh

ssh broken: dyld: Library not loaded: /usr/local/opt/ldns/lib/libldns.3.dylib · Issue #55625 · Homebrew/homebrew-core - https://github.com/Homebrew/homebrew-core/issues/55625

OpenSSH: dyld: Library not loaded: /usr/local/opt/ldns/lib/libldns.1.dylib · Issue #9412 · Homebrew/homebrew-core - https://github.com/Homebrew/homebrew-core/issues/9412

Error: /usr/local/Cellar/openssh/8.5p1 is not a directory

This may be an incomplete installation of openssh. You can uninstall it and reinstall openssh again to resolve this problem.

1
2
3
4
5
6
7
8
9
$ brew upgrade
...
Error: /usr/local/Cellar/openssh/8.5p1 is not a directory

$ brew uninstall openssh

$ brew install openssh

$ brew upgrade

References

[1] The Missing Package Manager for macOS (or Linux) — Homebrew - https://brew.sh/