Open hakonhagland opened 1 year ago
I'm not sure what's going on here since I haven't used brew. Was the /usr/share/file/magic.mgc
file installed by brew?
If it's like the one on my Linux system, the magic.mgc
file should be 5-6MB in size and running file
on it reports this:
$> file /usr/lib/file/magic.mgc
/usr/lib/file/magic.mgc: magic binary file for file(1) cmd (version 14) (little endian)
I'd be curious to see the output for your file.
I'm guessing the test failures where it's checking for the content type are because it can't load this magic file.
i'm seeing the same problem. Homebrew installed magic.mgc at this path: /homebrew/Cellar/libmagic/5.45/share/misc/magic.mgc
output of file
command is /opt/homebrew/Cellar/libmagic/5.45/share/misc/magic.mgc: magic binary file for file(1) cmd (version 18) (little endian)
What do I do with it, exactly?
Same problem here:
$ file /usr/share/file/magic.mgc
/usr/share/file/magic.mgc: magic binary file for file(1) cmd (version 16) (little endian)
$ uname -v
Darwin Kernel Version 24.0.0: Tue Sep 24 23:38:45 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8122
Hi, I am trying to install File::LibMagic on macOS 12.4, M1 using homebrew perl version 5.34.0, and installed version 5.43 of libmagic using
brew install libmagic
. Downloaded version 1.23 of File::LibMagic here: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/File-LibMagic-1.23.tar.gz