LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem installing spamassassin CentOS 5.5 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-spamassassin-centos-5-5-a-856430/)

rizwan65 01-14-2011 10:45 PM

Problem installing spamassassin CentOS 5.5
 
Hi every body
I am facing problem installing spamassassin on my CentOS - Direct Admin VPS
The installation ended with the following error

Quote:

REQUIRED module out of date: Archive::Tar
optional module missing: Digest::SHA
optional module missing: Mail::SPF
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: Mail:KIM
optional module missing: DBI
optional module missing: LWP::UserAgent
optional module missing: HTTP:ate
optional module missing: Encode:etect

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

make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
Cannot find /usr/bin/sa-update after install. Check for errors above.
Cannot find /usr/bin/spamd. Check above for errors or missing perl modules.
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

press enter to answer [yes] if it asks you to install dependencies (it will prepend them to the queue)
I tried installing missing modules as follows
Quote:

PERL_MM_USE_DEFAULT=1 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
But while istalling modules the following error occurs
Quote:

The module LWP::UserAgent isn't available on CPAN.

Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i LWP::UserAgent'.
Running install for module HTTP:ate

The module HTTP:ate isn't available on CPAN.

Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i HTTP:ate'.
Running install for module Encode:etect

The module Encode:etect isn't available on CPAN.

Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i Encode:etect'.
I need your help on how to install these modules

Regards
Rizwan

AlucardZero 01-14-2011 11:19 PM

HTTP:ate and Encode:etect are wrong: See how they don't fit the pattern with only one colon and the second set of characters not making sense. It feels like you copied from a forum post that turned :D into smilies. Install HTTP::Date and Encode::Detect instead.

LWP::UserAgent exists so I don't know why you wouldn't be able to find it. Maybe you need to use a different mirror.
Code:

$ perl -MCPAN -e shell
cpan> o conf urllist shift http://mirrors1.kernel.org/cpan/
cpan> o conf commit


rizwan65 01-14-2011 11:28 PM

AlucardZero: You are right I have copy/pasted from the forum I already posted
Anyways
Actually I am fairly newby in linux so I dont know you to change mirror and where
If you can explain I will be thankful
Regards
Rizwan

knudfl 01-15-2011 12:04 AM

Welcome to LQ.

How about # 'yum install spamassassin' : Will provide version 3.2.5.

The current stable "latest" is version 3.3.1.
Which version are you trying to install ? ?
3.3.1 does not ask for the selection of perl modules, shown in post #1.
( The most are just optional.)

Also : Perl modules can be installed with yum. This is for spamassassin-3.3.1 :
# yum install perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-Mail-DKIM

..

AlucardZero 01-15-2011 10:00 AM

Quote:

Originally Posted by rizwan65 (Post 4224874)
Actually I am fairly newby in linux so I dont know you to change mirror and where

I have given you the steps in my previous post.


All times are GMT -5. The time now is 04:14 AM.