# macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file)

**Code:** `dyld: Library not loaded` · **Category:** macOS · **Seen on:** macOS

A program needs a dynamic library that is missing or was moved/removed (often after a Homebrew upgrade).

## 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

1. `brew reinstall PACKAGE`
2. Install the specific older dependency named in the error
3. Check links: `otool -L $(which program)`

## Detailed fix by platform

### macOS

1. `otool -L $(which program)` and `brew list --versions openssl@3`

## How to diagnose

1. **Library** — Path in the message?
2. **Cause** — Upgrade or removal?
3. **Prefix** — Intel or ARM?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/macos/dyld-library-not-loaded)
