perl error when installing Mail::ClamAV

Michael St. Laurent mikes at HARTWELLCORP.COM
Mon Mar 8 19:25:42 GMT 2004


Pete <mailto:pete at eatathome.com.au> wrote:
>> When I try to use CPAN to install the Mail:ClamAV module I am
>> getting the following error:
>>
>> Can't locate Inline/MakeMaker.pm in @INC
>
> Have you tried installing via cpan?
> #perl -MCPAN -e shell
> cpan>install Inline::MakeMaker

I have now.  I went looking through the FAQs and found the page with the
instructions for installing the Mail::ClamAV module.

Still having trouble though.  Here's what is happening now:

[root at guardian root]# perl -MCPAN -e shell
Undefined value assigned to typeglob at (eval 13) line 15, <RC> line 11.
Warning [/etc/inputrc line 11]:
  Invalid variable `mark-symlinked-directories'

cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled

cpan> install Mail::ClamAV
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Fri, 05 Mar 2004 09:50:33 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Mon, 08 Mar 2004 11:56:23 GMT
Fetching with LWP:
  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Mail::ClamAV
Running make for S/SA/SABECK/Mail-ClamAV-0.06.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for
/root/.cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.06.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
Mail-ClamAV-0.06/
Mail-ClamAV-0.06/t/
Mail-ClamAV-0.06/t/virus.eml
Mail-ClamAV-0.06/t/Mail-ClamAV.t
Mail-ClamAV-0.06/README
Mail-ClamAV-0.06/ClamAV.pm
Mail-ClamAV-0.06/config.pl
Mail-ClamAV-0.06/Changes
Mail-ClamAV-0.06/Makefile.PL
Mail-ClamAV-0.06/ppport.h
Mail-ClamAV-0.06/META.yml
Mail-ClamAV-0.06/INSTALL
Mail-ClamAV-0.06/MANIFEST
Removing previously used /root/.cpan/build/Mail-ClamAV-0.06

  CPAN.pm: Going to build S/SA/SABECK/Mail-ClamAV-0.06.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Mail::ClamAV
cp ClamAV.pm blib/lib/Mail/ClamAV.pm
/usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.06
blib/arch
Starting Build Prepocess Stage
Finished Build Prepocess Stage

Starting Build Parse Stage
Finished Build Parse Stage

Starting Build Glue 1 Stage
Finished Build Glue 1 Stage

Starting Build Glue 2 Stage
Finished Build Glue 2 Stage

Starting Build Glue 3 Stage
Finished Build Glue 3 Stage

Starting Build Compile Stage
  Starting "perl Makefile.PL" Stage
Writing Makefile for Mail::ClamAV
  Finished "perl Makefile.PL" Stage

  Starting "make" Stage
make[1]: Entering directory
`/root/.cpan/build/Mail-ClamAV-0.06/_Inline/build/Ma
il/ClamAV'
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.
0/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
gcc -c  -I/root/.cpan/build/Mail-ClamAV-0.06 -I/usr/include -D_REENTRANT
-D_GNU_
SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g
-DVERSION=\
"0.06\" -DXS_VERSION=\"0.06\" -fPIC
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-mu
lti/CORE"   ClamAV.c
Running Mkbootstrap for Mail::ClamAV ()
chmod 644 ClamAV.bs
rm -f blib/arch/auto/Mail/ClamAV/ClamAV.so
LD_RUN_PATH="/usr/lib" gcc  -shared -L/usr/local/lib ClamAV.o  -o
blib/arch/auto
/Mail/ClamAV/ClamAV.so   -lclamav
chmod 755 blib/arch/auto/Mail/ClamAV/ClamAV.so
cp ClamAV.bs blib/arch/auto/Mail/ClamAV/ClamAV.bs
chmod 644 blib/arch/auto/Mail/ClamAV/ClamAV.bs
make[1]: Leaving directory
`/root/.cpan/build/Mail-ClamAV-0.06/_Inline/build/Mai
l/ClamAV'
  Finished "make" Stage

  Starting "make install" Stage
make[1]: Entering directory
`/root/.cpan/build/Mail-ClamAV-0.06/_Inline/build/Ma
il/ClamAV'
Installing
/root/.cpan/build/Mail-ClamAV-0.06/blib/arch/auto/Mail/ClamAV/ClamAV.
so
Installing
/root/.cpan/build/Mail-ClamAV-0.06/blib/arch/auto/Mail/ClamAV/ClamAV.
bs
Files found in blib/arch: installing files in blib/lib into architecture
depende
nt library tree
Writing
/root/.cpan/build/Mail-ClamAV-0.06/blib/arch/auto/Mail/ClamAV/.packlist
make[1]: Leaving directory
`/root/.cpan/build/Mail-ClamAV-0.06/_Inline/build/Mai
l/ClamAV'
  Finished "make install" Stage

  Starting Cleaning Up Stage
  Finished Cleaning Up Stage

Finished Build Compile Stage

Manifying blib/man3/Mail::ClamAV.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/Mail-ClamAV....#     Failed test (t/Mail-ClamAV.t at line 8)
#     Tried to use 'Mail::ClamAV'.
#     Error:  Had problems bootstrapping Inline module 'Mail::ClamAV'
#
# Can't load
'/root/.cpan/build/Mail-ClamAV-0.06/blib/arch/auto/Mail/ClamAV/Clam
AV.so' for module Mail::ClamAV:
/root/.cpan/build/Mail-ClamAV-0.06/blib/arch/aut
o/Mail/ClamAV/ClamAV.so: undefined symbol: gzdopen at
/usr/lib/perl5/5.8.0/i386-
linux-thread-multi/DynaLoader.pm line 229.
#  at /usr/lib/perl5/site_perl/5.8.0/Inline.pm line 500
#
#
#  at /root/.cpan/build/Mail-ClamAV-0.06/blib/lib/Mail/ClamAV.pm line 147
# BEGIN failed--compilation aborted at
/root/.cpan/build/Mail-ClamAV-0.06/blib/l
ib/Mail/ClamAV.pm line 420.
# Compilation failed in require at (eval 1) line 2.
"all" is not defined in %Mail::ClamAV::EXPORT_TAGS at t/Mail-ClamAV.t line
10
Can't continue after import errors at t/Mail-ClamAV.t line 10
# Looks like you planned 6 tests but only ran 1.
t/Mail-ClamAV....dubious
        Test returned status 6 (wstat 1536, 0x600)
DIED. FAILED tests 1-6
        Failed 6/6 tests, 0.00% okay
Failed Test     Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/Mail-ClamAV.t    6  1536     6    6 100.00%  1-6
Failed 1/1 test scripts, 0.00% okay. 6/6 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force


--
Michael St. Laurent
Hartwell Corporation



More information about the MailScanner mailing list