File::Scan::ClamAV doesn't work in Ubuntu 7.0.4

Asked by Twig

Installation of Perl module File::Scan::ClamAV fails in Feisty due to the following error:

ERROR: Can't open/parse the config file clamav.conf

I believe this file may have been moved / renamed in the latest version but I'm not sure what steps to take to rectify the problem.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu clamav Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Twig (pfirth) said :
#1

Hi,

I believe this question may have been renamed incorrectly. I can install ClamAV and the associated clamsmtp and clam-daemon packages. I am not able to install the File::Scan::ClamAV Perl module - this is the problem.

Regards,
Paul.

Revision history for this message
Skrynesaver (philip-quinlan) said :
#2

Are you using CPAN to install?
I have found it almost on a par with apt-get, but for Perl modules

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#3

Twig,

the Perl script you are using is dated 2004. There were so many changes in ClamAV since then that it is no surprise it doesn't work anymore.
Have a look at this page for some alternatives:

http://www.clamav.net/download/third-party-tools

If you are using KDE a good graphical frontend for ClamAV is KlamAV.

Note that none of these packages are officially supported by ubuntu.

Revision history for this message
Twig (pfirth) said :
#4

Thanks Cesare Tirabassi, that solved my question.

Revision history for this message
Twig (pfirth) said :
#5

For the record, the exact procedure I used was:

sudo perl -MCPAN -e shell
test File::Scan::ClamAV - this will fail but is necessary to download the module.
look File::Scan::ClamAV
vi clamav.conf - make the changes below:

LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
Foreground
MaxThreads 1
ScanArchive
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2

to:

LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
Foreground true
MaxThreads 1
ScanArchive true
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2

make install
exit

This should bring you back to the cpan interface with the module installed.