Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After successful

apt-get install clamav

I then did:

perl -MCPAN -e shell
install File::Scan::ClamAV 

and got Going to build J/JA/JAMTUR/File-Scan-ClamAV-1.91.tar.gz

Cannot find clamd in /root/bin (or a number of other places)
 - are you sure clamav in installed?
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 JAMTUR/File-Scan-ClamAV-1.91.tar.gz          : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512

What did I do wrong?

share|improve this question
up vote 1 down vote accepted

clamd means clamav daemon. You need install clamav-daemon package.

share|improve this answer
I no longer have this problem so I can't verify your solution. But I'm going to select your answer because it's the only one with an up vote. – Alex R Aug 21 '14 at 14:02

I have found the command dh-make-perl very helpful, as it allows CPAN modules to be easily converted into .debs

On my system, with the package "clamav-daemon" (not just "clamav") installed, the command dh-make-perl --cpan File::Scan::ClamAV --build successfully builds a .deb, which then installs fine with dpkg -i

Also possibly of interest, a different clamav interface, libclamav-client-perl, already exists in the Debian repos, and also in Ubuntu universe

share|improve this answer
The dh-make-perl command failed for me but I was able to cd into the build directory it created and simply type make install and it installed a working .pm file. Thanks! – ColinM Apr 23 '15 at 2:49

If your goal is to install ClamAV on debian you can refer to this article -

ClamAV installation on Debian

share|improve this answer

This is the official documentation for debian volatile:

By the way, ther error from the cpan shell is that it searches clamd in your root homedir. It cannot find it and boms out

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.