charmbracelet / charmbracelet/vhs
Library not loaded: liblept.5.dylib
- Dominant language
- Go
- Stars
- 20.9k
- Forks
- 474
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
When installing and trying to use this on an M1 Mac, there is an issue with dependencies not being found. Specifically:
`dyld[86379]: Library not loaded: /opt/homebrew/opt/leptonica/lib/liblept.5.dylib`
**Setup**
- Apple M1 Pro. Sonoma 14.1 (23B74)
- Installed with go and with brew
**To Reproduce**
Steps to reproduce the behavior:
1. Install vhs
2. Run a tape
**Solution**
I made a copy of the following 3 files
- /opt/homebrew/opt/leptonica/lib/libleptonica.6.dylib
- /opt/homebrew/opt/leptonica/lib/libleptonica.a
- /opt/homebrew/opt/leptonica/lib/libleptonica.dylib
and then renamed the copies to these respectively:
- /opt/homebrew/opt/leptonica/lib/liblept.5.dylib
- /opt/homebrew/opt/leptonica/lib/liblept.a
- /opt/homebrew/opt/leptonica/lib/liblept.dylib
Contributor guide
Research direction
Start by reproducing the M1 macOS setup described in the issue: install vhs with Go or Homebrew and run a tape. Trace how the application locates its leptonica dylib dependency; done means a tape runs without manually copying or renaming library files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, macos
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100