kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-clam: Could not verify the clamdscan binary

iUnstable0 opened this issue · comments

I got this output

[03:26:23.360] [log] node-clam: DEBUG MODE ON
[03:26:23.373] [log] node-clam: Could not verify the clamdscan binary. {"code":2,"killed":false,"signal":null,"cmd":"/opt/homebrew/bin/clamscan --version --config-file=/opt/homebrew/etc/clamav/clamd.conf","stdout":"","stderr":"/opt/homebrew/bin/clamscan: unrecognized option `--config-file=/opt/homebrew/etc/clamav/clamd.conf'\nERROR: Unknown option passed\nERROR: Can't parse command line options\n"}

Im on macos and I have clamav installed and the config file path is valid

Looks like it might be an issue with Homebrew's version of ClamAV potentially having a different set of command line options than Linux (specifically the --confile-file option. I'll take a look real quick.

I'm having no issues running this on my M2 Pro Mac running Sonoma and clamav v1.3.0. You may have something misconfigured.