Bug #1268
closed
suricata and macos/darwin: [ERRCODE: SC_ERR_MAGIC_LOAD(197)] - magic_load failed: File 5.19 supports only version 12 magic files. `/usr/share/file/magic.mgc' is version 7
Added by Julien . about 10 years ago.
Updated almost 9 years ago.
- Assignee set to Anonymous
- Target version set to TBD
What's the situation with more recent versions?
I suspect this is a mismatch between libmagic installed by OSX and by Macports. Macports likely installs it's own magic.mgc which Suricata should try to load. If I'm correct this is a configuration (and possibly documentation) error.
This is fixed by https://github.com/inliniac/suricata/pull/1823
The problem is that OS X does not include a libmagic, but it does include a magic file. So you have to install libmagic from MacPorts or Brew, but the location of the magic file is not updated. By not setting the magic file, the library linked to will pick up the correct one.
The work-around is to fix the location of magic-file, or commenting out should do the right thing as well.
It's commented out now, right?
Victor Julien wrote:
It's commented out now, right?
As of PR 1823. Not fixups required now on the Mac. Should close this.
- Status changed from New to Closed
- Assignee changed from Anonymous to Andreas Herz
- Target version changed from TBD to 3.0.1RC1
Also available in: Atom
PDF