fastn icon indicating copy to clipboard operation
fastn copied to clipboard

macOS Installation Script Downloads Binary with Missing liblzma.5.dylib Dependency

Open amitu opened this issue 4 months ago • 0 comments

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

  1. Run the installation script:

    curl -fsSL https://fastn.com/install.sh | sh
    
  2. 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.

amitu avatar Sep 08 '25 05:09 amitu