Arabic  Chinese (simplified)  Chinese (traditional)  French  German  Italian  Japanese  Korean  Portuguese  Russian  Spanish 

Installing the File::Scan::ClamAV module

From ASSPSMTP

(Redirected from File-Scan-ClamAV)
Jump to: navigation, search
ClamAV

On This Page

Installing on Windows

Download

Install

  • Extract \lib\File\Scan\ClamAV.pm from File-Scan-ClamAV-1.8.tar.gz
  • Copy ClamAV.pm to the following directory
C:\Perl\site\lib\File\Scan\
  • Restart ASSP and it should now see File:Scan:ClamAV as installed.

Related Articles

Visit ClamAV Win32 for instructions on getting the ClamAV clamd daemon running as a service on Windows.

Installing UNIX-like systems

FreeBSD

To install the port:
cd /usr/ports/security/p5-File-Scan-ClamAV/ && make install clean
To add the package:
pkg_add -r p5-File-Scan-ClamAV

Difficulty Installing File::Scan::ClamAV 1.8

You will likely see the following errors if you try to install File::Scan::ClamAV 1.8 with a recent version of the ClamAV package:

ERROR: Parse error at line 2: Option Foreground requires boolean argument 
ERROR: Can't open/parse the config file clamav.conf 

ClamAV has been updated to require Boolean arguments (true/false, yes/no) where before only keywords were required before. This disambiguates the config file, but File::Scan::ClamAV has not been updated since the change. It includes its own ClamAV config file with keywords and no Boolean arguments.

To fix this, do an interactive install of File::Scan::ClamAV and change /root/.cpan/build/File-Scan-ClamAV-1.8/clamav.conf (or wherever your CPAN modules are) from:

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

to: (The necessary changes are in bold.)

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

An example of how to make the needed changes on Linux

 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 above 
 make install 
 exit 

An example of how to make the needed changes on Mac OS X

 sudo cpan 
 test File::Scan::ClamAV - this will fail but is necessary to download the module. 
 look File::Scan::ClamAV 
 pico clamav.conf - make the changes above 
 make install 
 exit 

These icons link to social bookmarking sites where readers can share and discover new web pages. Blinklist  del.icio.us  digg  Furl  Google  ma.gnolia  Reddit  Slashdot  Spurl  YahooMyWeb 
Personal tools