macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file)
A program needs a dynamic library that is missing or was moved/removed (often after a Homebrew upgrade).
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylibdyld[1234]: Library not loaded: @rpath/dyld: Library not loaded Referenced from Reason: image not founddyld[ ]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.dylibLibrary not loaded Reason: tried: (no such file) Meaning
The path in the message tells what's missing. Reinstall the dependency (brew install openssl@1.1) or the program itself so it relinks (brew reinstall PACKAGE). Version bumps (openssl, icu4c, readline) frequently break old binaries. otool -L binary lists linked libraries.
Common causes
- Homebrew upgrade removed an old library version
- Dependency uninstalled/pruned
- Intel vs ARM prefix mismatch
- Binary built against a different install path
- Broken symlink in /usr/local/opt
⚡ Quick fix
brew reinstall PACKAGE- Install the specific older dependency named in the error
- Check links:
otool -L $(which program)
Detailed fix by platform
macOS
otool -L $(which program)andbrew list --versions openssl@3
How to diagnose
- Library — Path in the message?
- Cause — Upgrade or removal?
- Prefix — Intel or ARM?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- clang: error: unsupported option '-fopenmp' macOS: clang: error: unsupported option '-fopenmp' (OpenMP with Apple Clang)
- dyld: Symbol not found macOS: dyld: Symbol not found: _SecTrustCopyCertificateChain — Expected in: /System/Library/Frameworks/Security.framework
- error while loading shared libraries error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory
Most viewed in macOS
- is damaged and can’t be opened macOS: “App” is damaged and can’t be opened. You should move it to the Trash.
- Operation not permitted (macOS privacy) macOS: Operation not permitted — Terminal/app lacks Full Disk Access (TCC privacy protection)
- zsh: command not found: brew macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026