Skip to content

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

Description

@amitu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions