Results 1 to 10 of 10

Thread: Error installing Spamassassin

  1. #1
    Join Date
    Mar 2007
    Location
    Netherlands
    Posts
    3

    Error installing Spamassassin

    I installed directadmin today on a new CentOS7 VPS and followed the guide from the sticky to setup Spamassassin. But when I do
    Code:
    ./build spamassassin
    the console returns
    Code:
    ***************************************************************************
    NOTE: the optional fetch binary is not installed.
    
       Sa-update will use curl, wget or fetch to download updates.  
       Because perl module LWP does not support IPv6, sa-update as of
       3.4.0 will use these standard programs to download rule updates
       leaving LWP as a fallback if none of the programs are found.
    
       *IMPORTANT NOTE*: You only need one of these programs.
    
    dependency check complete...
    
    optional binary missing or nonfunctional: fetch
    
    warning: some functionality may not be available,
    please read the above report before continuing!
    
    Checking if your kit is complete...
    Looks good
    'CONTACT_ADDRESS' is not a known MakeMaker parameter name.
    'RUN_NET_TESTS' is not a known MakeMaker parameter name.
    Only one of PREFIX or INSTALL_BASE can be given.  Not both.
    
    *** There was an error while trying to configure SpamAssassin.
    I have no idea where to begin to troubleshoot this. I hope someone can help me.

  2. #2
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,783
    Have you tryed to instlal the fetch command as suggested?

    yum install fetch

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  3. #3
    Join Date
    Mar 2007
    Location
    Netherlands
    Posts
    3
    I didn't because it said it was 'optional' but yum can't seem to find it (nor can I seem to google an alternative method):
    Code:
    No package fetch available.

  4. #4
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,783
    Does it give any other information or error?

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  5. #5
    Join Date
    Mar 2004
    Posts
    172
    look in your ~/.bashrc file

    you probably have something like:

    Code:
    # .bashrc
    
    # User specific aliases and functions
    
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    	. /etc/bashrc
    fi
    
    export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
    export PERL_MB_OPT="--install_base /root/perl5";
    export PERL_MM_OPT="INSTALL_BASE=/root/perl5";
    export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
    export PATH="/root/perl5/bin:$PATH";
    Just comment out the export lines, log out then log in again and try it again.
    David M. Shirley CDTT (Certified Duct Tape Technician)

    Rock Solid Linux Web Hosting
    http://www.webquarry.com

  6. #6
    Join Date
    Mar 2004
    Posts
    172
    Oh you will probably have to add a perl module too:

    Code:
    yum install perl-Sys-Syslog
    or else spamd will not be able to start.
    Last edited by webquarry; 06-12-2015 at 08:40 PM.
    David M. Shirley CDTT (Certified Duct Tape Technician)

    Rock Solid Linux Web Hosting
    http://www.webquarry.com

  7. #7
    Join Date
    Oct 2004
    Location
    Rio de Janeiro - Brasil
    Posts
    183
    Same error here

    yum install perl-Sys-Syslog
    already installed

    the error:

    NOTE: the optional fetch binary is not installed.

    Sa-update will use curl, wget or fetch to download updates.
    Because perl module LWP does not support IPv6, sa-update as of
    3.4.0 will use these standard programs to download rule updates
    leaving LWP as a fallback if none of the programs are found.

    *IMPORTANT NOTE*: You only need one of these programs.

    dependency check complete...

    REQUIRED module missing: Archive::Tar
    REQUIRED module missing: IO::Zlib
    optional module missing: Geo::IP
    optional module missing: Razor2
    optional module missing: IO::Socket::IP
    optional module out of date: IO::Socket::SSL
    optional module missing: Mail:KIM
    optional module missing: Net::Patricia
    optional binary missing or nonfunctional: fetch

    warning: some functionality may not be available,
    please read the above report before continuing!

    Done Configuration.
    Trying to make SpamAssassin...
    make: *** No targets specified and no makefile found. Stop.

    If needed, use cpan to install the missing modules, eg:
    cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail:KIM LWP::UserAgent HTTP:ate Encode:etect ExtUtils::MakeMaker

    Press enter to answer [yes] if it asks you to install dependencies (it will prepend them to the queue)
    Answer no if it asks: Are you ready for manual configuration? [yes] no


    *** The make has failed, would you like to try to make again? (y,n):
    n

    [root@srv5 custombuild]#
    any help?
    WebHostingTalk now in portuguese -> www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web

  8. #8
    Join Date
    Mar 2004
    Posts
    172
    Quote Originally Posted by winger View Post
    Same error here

    already installed

    the error:



    any help?
    Did you try the stuff two posts up about removing the junk that CPAN puts in your bashrc file?

    also do

    yum install perl-Archive-Tar perl-IO-Zlib
    David M. Shirley CDTT (Certified Duct Tape Technician)

    Rock Solid Linux Web Hosting
    http://www.webquarry.com

  9. #9
    Join Date
    Dec 2008
    Posts
    518
    Quote Originally Posted by webquarry View Post
    look in your ~/.bashrc file

    you probably have something like:

    Code:
    # .bashrc
    
    # User specific aliases and functions
    
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    	. /etc/bashrc
    fi
    
    export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
    export PERL_MB_OPT="--install_base /root/perl5";
    export PERL_MM_OPT="INSTALL_BASE=/root/perl5";
    export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
    export PATH="/root/perl5/bin:$PATH";
    Just comment out the export lines, log out then log in again and try it again.
    Same problem for me, and this solution works for me.
    Thanks

  10. #10
    Join Date
    Jun 2017
    Posts
    8
    Quote Originally Posted by Anillusion View Post
    Code:
    ***************************************************************************
    NOTE: the optional fetch binary is not installed.
    
       Sa-update will use curl, wget or fetch to download updates.  
       Because perl module LWP does not support IPv6, sa-update as of
       3.4.0 will use these standard programs to download rule updates
       leaving LWP as a fallback if none of the programs are found.
    
       *IMPORTANT NOTE*: You only need one of these programs.
    
    dependency check complete...
    
    optional binary missing or nonfunctional: fetch
    
    warning: some functionality may not be available,
    please read the above report before continuing!
    
    Checking if your kit is complete...
    Looks good
    'CONTACT_ADDRESS' is not a known MakeMaker parameter name.
    'RUN_NET_TESTS' is not a known MakeMaker parameter name.
    Only one of PREFIX or INSTALL_BASE can be given.  Not both.
    
    *** There was an error while trying to configure SpamAssassin.
    I have no idea where to begin to troubleshoot this. I hope someone can help me.
    I have the same error and any of the mentioned fixed didn't fixed the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •