Error installing Spamassassin

Anillusion

New member
Joined
Mar 29, 2007
Messages
3
Location
Netherlands
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.
 

Anillusion

New member
Joined
Mar 29, 2007
Messages
3
Location
Netherlands
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.
 

webquarry

Verified User
Joined
Mar 19, 2004
Messages
177
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.
 

webquarry

Verified User
Joined
Mar 19, 2004
Messages
177
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:

winger

Verified User
Joined
Oct 5, 2004
Messages
183
Location
Rio de Janeiro - Brasil
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::DKIM
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::DKIM LWP::UserAgent HTTP::Date Encode::Detect 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?
 

webquarry

Verified User
Joined
Mar 19, 2004
Messages
177
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
 

pppplus

Verified User
Joined
Dec 19, 2008
Messages
522
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
 

suhesh

New member
Joined
Jun 25, 2017
Messages
8
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.
 
Top