Click here to get back home

ClamAV

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
ClamAV lwirving 04-09-2007
Posted by lwirving on April 9, 2007, 1:30 am
Please log in for more thread options


Can some one help me with installing the clamAV module

It is on the Cpan site but when I run ppm install file-scan-clamav it
does not find it
I also tried ppm install clamav with the same result

wayne


Posted by Sisyphus on April 9, 2007, 2:11 am
Please log in for more thread options



> Can some one help me with installing the clamAV module
>
> It is on the Cpan site but when I run ppm install file-scan-clamav it
> does not find it
> I also tried ppm install clamav with the same result
>

I don't think there's any ppm distro for File-Scan-ClamAV.

The module has been written under the assumption that the local machine has
a "clamd'" server, and the operating system is a Unix-type os.

Which operating system are you running ? If you're running Windows there'll
be some hacking of the module's source required - though it might run as is
on Windows under Cygwin (asssuming the "clamd" server is installed).

Do you have the "clamd" server installed ? That would be the first thing to
take care of. (Even if a ppm existed, it wouldn't be functional without a
clamd server.)

Cheers,
Rob


Posted by lwirving on April 9, 2007, 8:09 am
Please log in for more thread options


>
>
> > Can some one help me with installing the clamAV module
>
> > It is on the Cpan site but when I run ppm install file-scan-clamav it
> > does not find it
> > I also tried ppm install clamav with the same result
>
> I don't think there's any ppm distro for File-Scan-ClamAV.
>
> The module has been written under the assumption that the local machine has
> a "clamd'" server, and the operating system is a Unix-type os.
>
> Which operating system are you running ? If you're running Windows there'll
> be some hacking of the module's source required - though it might run as is
> on Windows under Cygwin (asssuming the "clamd" server is installed).
>
> Do you have the "clamd" server installed ? That would be the first thing to
> take care of. (Even if a ppm existed, it wouldn't be functional without a
> clamd server.)
>
> Cheers,
> Rob

Yes I have the clamd server installed on windows 2003 and have been
using it with Merak mailserver successfully
it is the native win 32 port that does not use cygwin though
I saw that it could run under assp (anti SPAM SMTP Proxy)- and figure
it would be better to reject the mail there rather than passing it
through to Merak mailserver
The native windows port of clamd has to be installed in the c:\program
files\clamav folder according to the install instructions

I tried to install into the c:\clamav folder but the runclamd service
would not work in that configuration even after I manually edited the
path to the runclamd.exe file in the registry

Thanks for your help

Wayne


Posted by Sisyphus on April 9, 2007, 8:39 pm
Please log in for more thread options



.
.
>
> Yes I have the clamd server installed on windows 2003 and have been
> using it with Merak mailserver successfully
.
.
> The native windows port of clamd has to be installed in the c:\program
> files\clamav folder

Ok - first thing to do is to set the CLAMD_PATH environment variable to
c:\program files\clamav, then see how it goes. (I think you could still
access that server using Cygwin if you wanted.)

The module's code doesn't seem to be all that difficult to understand, and
the documentation is clear - success probably depends upon how
desperate/committed you are :-)

Cheers,
Rob


Posted by lwirving on April 10, 2007, 10:31 am
Please log in for more thread options


>
> .
> .
>
> > Yes I have the clamd server installed on windows 2003 and have been
> > using it with Merak mailserver successfully
>
> .
> .
>
> > The native windows port of clamd has to be installed in the c:\program
> > files\clamav folder
>
> Ok - first thing to do is to set the CLAMD_PATH environment variable to
> c:\program files\clamav, then see how it goes. (I think you could still
> access that server using Cygwin if you wanted.)
>
> The module's code doesn't seem to be all that difficult to understand, and
> the documentation is clear - success probably depends upon how
> desperate/committed you are :-)
>
> Cheers,
> Rob

I have a tiny little programing experience but not with PERL

I tried changing the makefile.pl
use ExtUtils::MakeMaker;

$ENV ||= -e "/usr/local/sbin/clamd" ?
        "/usr/local/sbin" : -e "/usr/sbin/clamd" ?
        "/usr/sbin" : -e "/usr/local/bin/clamd" ?
        "/usr/local/bin" : -e "C:\program files\clamav" ?
        "c:\program files\clamav" : "$ENV\bin";

my $help = `$ENV/clamd --help 2>&1` || '';
if ($help !~ /clam/i) {
die "Cannot find clamd in $ENV (or a number of other
places)\n - are you sure clamav in installed?\n";
}

WriteMakefile(
'NAME' => 'File::Scan::ClamAV',
'VERSION_FROM' => 'lib/File/Scan/ClamAV.pm',
'PREREQ_PM' => {},
'ABSTRACT' => 'A simple interface to the Clam Anti-Virus system',
);

sub MY::test {
package MY;
my $self = shift;
my $make = $self->SUPER::test();
$make =~ s/PERL_DL_NONLAZY=1/PERL_DL_NONLAZY=1 CLAMD_PATH=
$ENV/g;
return $make;
}

I also tried -e "C:\program files\clamav" ?
        "c:\program files\clamav" : "$ENV\bin";
and -e "C:/program files/clamav" ?
        "c:/program files/clamav" : "$ENV/bin";
and -e "/program files/clamav" ?
        "/program files/clamav" : "$ENV/bin";
then i noticed the / bin

so I did this
use ExtUtils::MakeMaker;

$ENV ||= -e "/usr/local/sbin/clamd" ?
        "/usr/local/sbin" : -e "/usr/sbin/clamd" ?
        "/usr/sbin" : -e "/usr/local/bin/clamd" ?
        "/usr/local/bin" : -e "C:\program files\clamav" ?
        "c:\program files\clamav" : "$ENV\bin";

my $help = `$ENV\clamd --help 2>&1` || '';


WriteMakefile(
'NAME' => 'File::Scan::ClamAV',
'VERSION_FROM' => 'c:\clamav\lib\File\Scan\ClamAV.pm',
'PREREQ_PM' => {},
'ABSTRACT' => 'A simple interface to the Clam Anti-Virus system',
);

sub MY::test {
package MY;
my $self = shift;
my $make = $self->SUPER::test();
$make =~ s/PERL_DL_NONLAZY=1/PERL_DL_NONLAZY=1 CLAMD_PATH=
$ENV/g;
return $make;
}

and got this
C:\ClamAV>perl makefile.pl
Checking if your kit is complete...
Looks good
Writing Makefile for File::Scan::ClamAV

Does this mean I'm done or do I have to find the makefile (if so
where) and do something with it


Regards
Wayne



Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap