fastn
fastn copied to clipboard
macOS Installation Script Downloads Binary with Missing liblzma.5.dylib Dependency
Issue Description
The fastn installation script on macOS downloads a binary that fails to run due to a missing system library dependency.
Steps to Reproduce
-
Run the installation script:
curl -fsSL https://fastn.com/install.sh | sh -
Try to run the installed fastn binary:
export PATH="$HOME/.fastn/bin:$PATH" fastn --version
Expected Behavior
fastn should run and show the version information.
Actual Behavior
Error:
dyld[80053]: Library not loaded: /usr/local/opt/xz/lib/liblzma.5.dylib
Referenced from: <63EA7ECD-69DF-385E-8DF3-677D0FE3D616> /Users/amitu/.fastn/bin/fastn
Reason: tried: '/usr/local/opt/xz/lib/liblzma.5.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/xz/lib/liblzma.5.dylib' (no such file),
'/usr/local/opt/xz/lib/liblzma.5.dylib' (no such file)
Environment
- macOS Darwin 25.0.0
- Installation completed successfully but binary fails to execute
Workaround
Using cargo-installed fastn works fine:
~/.cargo/bin/fastn --version # works
Suggested Fix
The binary distributed by the installation script should be statically linked or the script should check for/install required system dependencies like liblzma.