Skip to content

macOS: CLI does not run (libmagic.1.dylib not found) #352

@steef435

Description

@steef435

Installing via homebrew (on M4 processor) and running aft-mtp-cli gives:

dyld[11743]: Library not loaded: /usr/local/opt/libmagic/lib/libmagic.1.dylib
  Referenced from: <3400037E-B2B4-3A04-B3A5-ABECB9090AEB> /Applications/Android File Transfer for Linux.app/Contents/SharedSupport/bin/aft-mtp-cli
  Reason: tried: '/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file), '/usr/local/opt/libmagic/lib/libmagic.1.dylib' (no such file)
zsh: abort      aft-mtp-cli

When compiled from scratch it does work.

Apologies if this is actually a homebrew issue, I'm not familiar enough to tell. Just installing libmagic via Homebrew or setting it as a dependency does not work, because this installs the ARM version.

Thank you for sharing this software!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions