[clamav-users] Need Help | Clamav installation on SUSE Linux Enterprise Server 12
G.W. Haywood
clamav at jubileegroup.co.uk
Tue Mar 23 08:41:25 UTC 2021
Hi there,
On Tue, 23 Mar 2021, amit.a.singh--- via clamav-users wrote:
> ...
> LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
> ...
This error message is perfectly clear. You did not have the required
databases in the configured database directory. If you had simply put
them there, then (give or take systemd) your problems might well have
been solved. Usually it will be much simpler to install from packages
than from source. I recommend that you persevere with the packages
rather than jumping from the frying pan into the fire.
Unfortunately an installation from the distribution packaging system
and an installation from the upstream tarball will often conflict -
the locations of things like binaries, libraries and configuration
files might all be different - so if you try to install from source
after installing from a package things will generally be simpler if
you first *purge* the packaged version from the system (that is
completely remove all traces of it). This will also help to avoid
confusion, because otherwise you will often not know which files your
installation is using, what needs to be updated, etc.. I guess that
you did not do that before your (first) item 2. It might not be very
easy for you to purge the files from a failed source installation but
with luck they won't do any harm (other than causing some confusion)
if you try again to install from the distribution's packages. It is
likely that the distribution's packages will contain an older version
of ClamAV than the current source, but hopefully not very much older.
> 2) Using a tar file clamav-0.103.1.tar.gz ,
Please will you explain *exactly* what you did to install it?
> ...
> /usr/local/clamav/bin/clamscan -r
Can you explain what you expected that this command would do for you?
Did you read the documentation for this command?
> ...
> LibClamAV Error: cl_load(): No such file or directory: /usr/local/clamav/share/clamav
This message appears to be saying that your installation has not been
completed properly. Please answer my previous questions.
> 2) Need help to know to download and update the freshclam database
> offline as machine don't have internet connectivity as now getting
> below error.
>
> /usr/local/clamav/bin/freshclam
> ERROR: Please edit the example config file /usr/local/clamav/etc/freshclam.conf
> ERROR: Can't open/parse the config file /usr/local/clamav/etc/freshclam.conf
You must learn to take note of the content of error messages. Again,
these messages are very clear - and they have nothing to do with the
presence or absence of the database files. The freshclam utility is
telling you that it looked for its configuration file 'freshclam.conf'
and failed to find it. This is because the installation was not done
correctly. There is a utility which lists the entire configuration of
the ClamAV system. I invite you to find it, read its documentation,
run it, copy the output to a text file, and mail it to us here.
Finally, as the machine has no conection to the Internet, what is your
assessment of the threats it faces? How do you intend to use ClamAV
to mitigate them? It seems to me that until you have a clear picture
of these things in your mind, trying to install ClamAV might just be a
waste of your time and, worse, you might pose a greater danger to your
system than any of the supposed threats.
--
73,
Ged.
More information about the clamav-users
mailing list