-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run clamav because I can't update the virus définition #1900
Comments
Yeah, this isn't our most user-friendly formula. First, note the caveat message you get when initially installing:
So what is it talking about regarding "example conf files at /usr/local/etc/clamav/"?
Note that configuration files with the extension Let's see what happens if we ignore the conf files issue and just try to run clamscan:
Is that telling the truth?
Yep, nothing there. So where do we get them? Note that Homebrew doesn't provide any non-Homebrew-specific documentation, so now would be a good time to visit https://www.clamav.net/. If you click "download" or visit "https://www.clamav.net/downloads" directly, you'll see a closed tab with the name "Virus Database." If you click that, you'll see:
But let's assume that we're in a rush, and get the point that to get the database files we need to run
OK, well that should make sense, since the only files in /usr/local/etc/clamav/ were clamd.conf.sample freshclam.conf.sample as we saw above. It's looking for
Well at least we got a different error that time. It's telling us we actually have to edit freshclam.conf and that the sample wasn't sufficient without any modifications. Let's see what's wrong. If you open freshclam.conf in a text editor, you'll see at the top
OK, so it seems to be telling us how to fix it: "Comment or remove the line below." That must be referring to the line that just says "Example" so let's delete that line and save the file. Now what happens if we run
Well that's much better! But did the database files end up in the right place?
Yes, that looks good. So can we actually run
Yes looks good. (And probably best to run it with So it seems clamd.conf was not actually mandatory but freshclam.conf was, and freshclam.conf required edits to the sample version to actually be functional. And now would be a good time to consult the upstream documentation for further information. |
@Battant let us know if you need additional help beyond the above. |
It's actually pretty important at runtime & clamav will throw irritating warnings that it's missing at every opportunity without it. Ref: #1900 Since `pcre` is already an epidemic in Homebrew, spreading it a little further probably won't catch many additional users. Closes #2093. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Hello,
Because clamxav became comercial and close source, I try to install clamav using hambrew
When I run clamscan I get this :
`clamscan
LibClamAV Error: cli_loaddbdir(): No supported database files found in /usr/local/Cellar/clamav/0.99.2/share/clamav
ERROR: Can't open file or directory
----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.009 sec (0 m 0 s)``
When I run freshclam I get this
sudo freshclam ERROR: Can't open/parse the config file /usr/local/etc/clamav/freshclam.conf
`
Could you help me please to fix this issue ?
Thanks for your support
Battant
The text was updated successfully, but these errors were encountered: