The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Perl module ClamAv not installing

Discussion in 'General Discussion' started by ShannonS, Apr 8, 2006.

  1. ShannonS

    ShannonS Member

    Joined:
    Nov 22, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    here is the error message i got when i try to install perl module Mail::ClamAV

    Code:
    Attempting to install Mail::ClamAV 
    
    spawn /scripts/perlinstaller Mail::ClamAV
    Method: Perl Expect
    Testing connection speed...(this could take a while)....Done
    
    Three usable mirrors located
    
    Mirror Check passed for cpan.mirrors.hoobly.com (/index.html)
    
    Dropping unknown config variable 'less'
    
    Dropping unknown config variable 'make_test'
    
    commit: wrote '/usr/lib/perl5/5.8.7/CPAN/Config.pm'
    
    CPAN: File::HomeDir loaded ok
    
    CPAN: Storable loaded ok
    
    Going to read /home/.cpan/Metadata
    
      Database was generated on Sat, 08 Apr 2006 03:46:13 GMT
    
    Running install for module Mail::ClamAV
    
    Running make for S/SA/SABECK/Mail-ClamAV-0.17.tar.gz
    
    CPAN: Digest::SHA loaded ok
    
    CPAN: Module::Signature loaded ok
    
    WARNING: This key is not certified with a trusted signature!
    
    Primary key fingerprint: 2E66 557A B97C 19C7 91AF  8E20 328D A867 450F 89EC
    
    Signature for /home/.cpan/sources/authors/id/S/SA/SABECK/CHECKSUMS ok
    
    CPAN: Compress::Zlib loaded ok
    
    Checksum for /home/.cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.17.tar.gz ok
    
    Scanning cache /home/.cpan/build for sizes
    
    Mail-ClamAV-0.17/
    
    Mail-ClamAV-0.17/Inline/
    
    Mail-ClamAV-0.17/Inline/MakeMaker.pm
    
    Mail-ClamAV-0.17/Makefile.PL
    
    Mail-ClamAV-0.17/README
    
    Mail-ClamAV-0.17/t/
    
    Mail-ClamAV-0.17/t/Mail-ClamAV.t
    
    Mail-ClamAV-0.17/t/eicarcom2.zip
    
    Mail-ClamAV-0.17/t/virus.eml
    
    Mail-ClamAV-0.17/config.pl
    
    Mail-ClamAV-0.17/MANIFEST
    
    Mail-ClamAV-0.17/INSTALL
    
    Mail-ClamAV-0.17/ClamAV.pm
    
    Mail-ClamAV-0.17/META.yml
    
    Mail-ClamAV-0.17/Changes
    
    Removing previously used /home/.cpan/build/Mail-ClamAV-0.17
    
    Package came without SIGNATURE
    
    
    
    
    
      CPAN.pm: Going to build S/SA/SABECK/Mail-ClamAV-0.17.tar.gz
    
    
    
    WARNING ------------------------------------------------
    
    WARNING You have an older version of clamav or
    
    WARNING clamav-config is not in your path
    
    WARNING If you get compile errors you will either
    
    WARNING need to upgrade clamav to atleast 0.73
    
    WARNING or make sure clamav-config is in your path
    
    WARNING ------------------------------------------------
    
    Checking if your kit is complete...
    
    Looks good
    
    Note (probably harmless): No library found for -lclamav
    
    Writing Makefile for Mail::ClamAV
    
    CPAN: YAML loaded ok
    
    cp ClamAV.pm blib/lib/Mail/ClamAV.pm
    
    /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.17 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
    
    Note (probably harmless): No library found for -lclamav
    
    Writing Makefile for Mail::ClamAV
    
      Finished "perl Makefile.PL" Stage
    
    
    
      Starting "make" Stage
    
    make[1]: Entering directory `/home/.cpan/build/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV'
    
    /usr/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
    
    cc -c  -I/home/.cpan/build/Mail-ClamAV-0.17 -I/usr/include -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2   -DVERSION=\"0.17\" -DXS_VERSION=\"0.17\" -fpic "-I/usr/lib/perl5/5.8.7/i686-linux/CORE"   ClamAV.c
    
    ClamAV.xs:11:20: clamav.h: No such file or directory
    
    ClamAV.xs:19: error: field `limits' has incomplete type
    
    ClamAV.xs:20: error: field `st' has incomplete type
    
    ClamAV.xs: In function `clamav_perl_new':
    
    ClamAV.xs:48: error: invalid application of `sizeof' to incomplete type `cl_stat' 
    
    ClamAV.xs: In function `clamav_perl__scanbuff':
    
    ClamAV.xs:180: error: `CL_VIRUS' undeclared (first use in this function)
    
    ClamAV.xs:180: error: (Each undeclared identifier is reported only once
    
    ClamAV.xs:180: error: for each function it appears in.)
    
    ClamAV.xs:182: error: `CL_CLEAN' undeclared (first use in this function)
    
    ClamAV.xs:185: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast
    
    ClamAV.xs: In function `clamav_perl__scanfd':
    
    ClamAV.xs:224: error: `CL_VIRUS' undeclared (first use in this function)
    
    ClamAV.xs:226: error: `CL_CLEAN' undeclared (first use in this function)
    
    ClamAV.xs:229: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast
    
    ClamAV.xs: In function `clamav_perl__scanfile':
    
    ClamAV.xs:265: error: `CL_VIRUS' undeclared (first use in this function)
    
    ClamAV.xs:267: error: `CL_CLEAN' undeclared (first use in this function)
    
    ClamAV.xs:270: warning: passing arg 2 of `Perl_sv_setpv' makes pointer from integer without a cast
    
    ClamAV.xs: In function `error':
    
    ClamAV.xs:293: warning: assignment makes pointer from integer without a cast
    
    ClamAV.xs: In function `clamav_perl_constant':
    
    ClamAV.xs:300: error: `CL_CLEAN' undeclared (first use in this function)
    
    ClamAV.xs:301: error: `CL_VIRUS' undeclared (first use in this function)
    
    ClamAV.xs:303: error: `CL_EMAXREC' undeclared (first use in this function)
    
    ClamAV.xs:304: error: `CL_EMAXSIZE' undeclared (first use in this function)
    
    ClamAV.xs:305: error: `CL_EMAXFILES' undeclared (first use in this function)
    
    ClamAV.xs:306: error: `CL_ERAR' undeclared (first use in this function)
    
    ClamAV.xs:307: error: `CL_EZIP' undeclared (first use in this function)
    
    ClamAV.xs:308: error: `CL_EMALFZIP' undeclared (first use in this function)
    
    ClamAV.xs:309: error: `CL_EGZIP' undeclared (first use in this function)
    
    ClamAV.xs:310: error: `CL_EBZIP' undeclared (first use in this function)
    
    ClamAV.xs:311: error: `CL_EOLE2' undeclared (first use in this function)
    
    ClamAV.xs:312: error: `CL_EMSCOMP' undeclared (first use in this function)
    
    ClamAV.xs:313: error: `CL_EMSCAB' undeclared (first use in this function)
    
    ClamAV.xs:314: error: `CL_EACCES' undeclared (first use in this function)
    
    ClamAV.xs:315: error: `CL_ENULLARG' undeclared (first use in this function)
    
    ClamAV.xs:317: error: `CL_ETMPFILE' undeclared (first use in this function)
    
    ClamAV.xs:318: error: `CL_EFSYNC' undeclared (first use in this function)
    
    ClamAV.xs:319: error: `CL_EMEM' undeclared (first use in this function)
    
    ClamAV.xs:320: error: `CL_EOPEN' undeclared (first use in this function)
    
    ClamAV.xs:321: error: `CL_EMALFDB' undeclared (first use in this function)
    
    ClamAV.xs:322: error: `CL_EPATSHORT' undeclared (first use in this function)
    
    ClamAV.xs:323: error: `CL_ETMPDIR' undeclared (first use in this function)
    
    ClamAV.xs:324: error: `CL_ECVD' undeclared (first use in this function)
    
    ClamAV.xs:325: error: `CL_ECVDEXTR' undeclared (first use in this function)
    
    ClamAV.xs:326: error: `CL_EMD5' undeclared (first use in this function)
    
    ClamAV.xs:327: error: `CL_EDSIG' undeclared (first use in this function)
    
    ClamAV.xs:328: error: `CL_EIO' undeclared (first use in this function)
    
    ClamAV.xs:329: error: `CL_EFORMAT' undeclared (first use in this function)
    
    ClamAV.xs:331: error: `CL_SCAN_RAW' undeclared (first use in this function)
    
    ClamAV.xs:332: error: `CL_SCAN_ARCHIVE' undeclared (first use in this function)
    
    ClamAV.xs:333: error: `CL_SCAN_MAIL' undeclared (first use in this function)
    
    ClamAV.xs:334: error: `CL_SCAN_DISABLERAR' undeclared (first use in this function)
    
    ClamAV.xs:335: error: `CL_SCAN_OLE2' undeclared (first use in this function)
    
    ClamAV.xs:336: error: `CL_SCAN_BLOCKENCRYPTED' undeclared (first use in this function)
    
    ClamAV.xs:337: error: `CL_SCAN_HTML' undeclared (first use in this function)
    
    ClamAV.xs:338: error: `CL_SCAN_PE' undeclared (first use in this function)
    
    ClamAV.xs:339: error: `CL_SCAN_BLOCKBROKEN' undeclared (first use in this function)
    
    ClamAV.xs:340: error: `CL_SCAN_MAILURL' undeclared (first use in this function)
    
    ClamAV.xs:341: error: `CL_SCAN_BLOCKMAX' undeclared (first use in this function)
    
    ClamAV.xs:343: error: `CL_SCAN_STDOPT' undeclared (first use in this function)
    
    make[1]: *** [ClamAV.o] Error 1
    
    
    
    make[1]: Leaving directory `/home/.cpan/build/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV'
    
    
    
    A problem was encountered while attempting to compile and install your Inline
    
    C code. The command that failed was:
    
      make
    
    
    
    The build directory was:
    
    /home/.cpan/build/Mail-ClamAV-0.17/_Inline/build/Mail/ClamAV
    
    
    
    To debug the problem, cd to the build directory, and inspect the output files.
    
    
    
     at /home/.cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 193
    
    BEGIN failed--compilation aborted at /home/.cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 537.
    
    Compilation failed in require.
    
    BEGIN failed--compilation aborted.
    
    make: *** [ClamAV.inl] Error 25
    
    
    
      /usr/bin/make  -- NOT OK
    
    Running make install
    
      make had returned bad status, install seems impossible
    
    perlmod--Install done
    
    
    
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup, the problem is in the log:
    You need to clean up your old ClamAV installs which are probably in multiple places. The following will clean them up:

    killall clamd

    /bin/rm -Rfv /usr/bin/clam*
    /bin/rm -Rfv /usr/sbin/clam*
    /bin/rm -Rfv /usr/lib/libclam*
    /bin/rm -Rfv /usr/share/clam*
    /bin/rm -Rfv /usr/include/clam*
    /bin/rm -Rfv /usr/bin/freshclam*
    /bin/rm -Rfv /usr/etc/clamav*

    /bin/rm -Rfv /usr/local/bin/clam*
    /bin/rm -Rfv /usr/local/sbin/clam*
    /bin/rm -Rfv /usr/local/lib/libclam*
    /bin/rm -Rfv /usr/local/share/clam*
    /bin/rm -Rfv /usr/local/include/clam*
    /bin/rm -Rfv /usr/local/bin/freshclam*
    /bin/rm -Rfv /usr/local/etc/clamav*


    You should then reinstall ClamAV and then the Mail::ClamAV perl module. If this is for use with MailScanner, then you can follow this guide afterwards:
    http://www.configserver.com/free/clamav.html
     
Loading...

Share This Page