You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Yves Goergen <no...@unclassified.de> on 2006/12/17 16:16:24 UTC

sa-update is broken

Hi,
I read in another thread, that I can use sa-update, supposedly to update
my rules, not sure. I just tried and here's what it says:

# sa-update
Can't locate LWP/UserAgent.pm in @INC (@INC contains:
/usr/local/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl) at /usr/bin/sa-update line 92.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 92.

I installed the latest SA with this:
perl -MCPAN -e 'install Mail::SpamAssassin'

I needed to install a bunch of other Perl modules before that worked. Is
there another module that I need to install? I don't know Perl from the
inside, and not at all how to install it.

-- 
Yves Goergen "LonelyPixel" <no...@unclassified.de>
Visit my web laboratory at http://beta.unclassified.de

Re: sa-update is broken

Posted by Christian Eichert <mo...@mx.homelinux.org>.
Sietse van Zanen wrote:
> perl -MCPAN -e 'install LWP::UserAgent'
> 
> And you might be missing a couple more.
> 
> -Sietse
> 
> -----Original Message-----
> From: Yves Goergen [mailto:nospam.list@unclassified.de] 
> Sent: Sunday, December 17, 2006 4:16 PM
> To: users@spamassassin.apache.org
> Subject: sa-update is broken
> 
> Hi,
> I read in another thread, that I can use sa-update, supposedly to update
> my rules, not sure. I just tried and here's what it says:
> 
> # sa-update
> Can't locate LWP/UserAgent.pm in @INC (@INC contains:
> /usr/local/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl) at /usr/bin/sa-update line 92.
> BEGIN failed--compilation aborted at /usr/bin/sa-update line 92.
> 
> I installed the latest SA with this:
> perl -MCPAN -e 'install Mail::SpamAssassin'
> 
> I needed to install a bunch of other Perl modules before that worked. Is
> there another module that I need to install? I don't know Perl from the
> inside, and not at all how to install it.
> 


try this:
  apt-get install libarchive-tar-perl

Re: sa-update is broken

Posted by Kenneth Porter <sh...@sewingwitch.com>.
--On Monday, December 18, 2006 11:20 PM +0100 Yves Goergen 
<no...@unclassified.de> wrote:

> So now my SA setup is supposed to be broken or what? Well, it still
> works so I guess when the next SA version comes out, it'll fix this again.

Depends on how you installed it. Or if you have backups. Back up your local 
config (in /etc/mail/spamassassin on my system), re-install SA, restore 
your local config.



Re: sa-update is broken

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Dec 18, 2006 at 11:20:46PM +0100, Yves Goergen wrote:
> Maybe a Wiki-style of a documentation isn't well suited for beginners
> that don't know the correct search terms.

FWIW, the man page points you at that wiki page for more information.

> Looks like a loose collection of some special short notes to me but not
> at all like a structured handbook where you can find your topic like in
> those printed on paper a couple of years ago. :(

We'd be happy to accept volunteers to help with documentation. :)

> So now my SA setup is supposed to be broken or what? Well, it still
> works so I guess when the next SA version comes out, it'll fix this again.

It should still work, though some things like TextCat won't due to missing
files.  It's also going to be slightly less efficient, but that's not a huge
deal.

-- 
Randomly Selected Tagline:
"640K ought to be enough for anybody." - Bill Gates, 1981

Re: sa-update is broken

Posted by Nigel Frankcom <ni...@blue-canoe.net>.
On Mon, 18 Dec 2006 23:20:46 +0100, Yves Goergen
<no...@unclassified.de> wrote:

>On 18.12.2006 18:04 CE(S)T, Theo Van Dinter wrote:
>> On Mon, Dec 18, 2006 at 06:01:38PM +0100, Yves Goergen wrote:
>>> BTW, to make the update work on a default SA installation, you need to
>>> specify a different path:
>>>
>>>     # sa-update --updatedir /usr/local/share/spamassassin
>>>
>>> Is that by intent?
>> 
>> Um.  No you don't.  In fact, you really don't want to do that.  See
>> http://wiki.apache.org/spamassassin/RuleUpdates
>
>Aha, and that stupid little tool can't tell me that before? Maybe a
>Wiki-style of a documentation isn't well suited for beginners that don't
>know the correct search terms.
>
>Is this the home of the SA documentation?
>http://spamassassin.apache.org/doc.html
>I wouldn't know where to click at all to find anything on that page.
>Looks like a loose collection of some special short notes to me but not
>at all like a structured handbook where you can find your topic like in
>those printed on paper a couple of years ago. :(
>
>So now my SA setup is supposed to be broken or what? Well, it still
>works so I guess when the next SA version comes out, it'll fix this again.

Umm, if that 'stupid little tool' doesn't work for you, maybe you
should drop SA and live with the spam? That 'stupid little tool' works
well for many 100's? 1,000's of sa users. Maybe you're special, maybe
you need an even smaller tool. Look south, I'm sure you'll find one.

Nigel

RE: sa-update is broken

Posted by R Lists06 <li...@abbacomm.net>.
> 
> No.
> 
> But it does work better if you install all needed dependencies and
> follow the instructions. Without dependencies it doesn't run (who
> would have guessed?), and without following the instructions the
> result may not be what you expected.
> 
> -thh

Thanks, the context of my question was based upon the subject of this thread
and that I hadn't seen an update in awhile (I do it manually) and I was
tired of following the thread somewhat, so without trying to offend, I
asked.

:-)

Our stuff here is not broken so I wasn't worried unless of course sa-update
was broken per that threads subject (it was not).

 - rh

--
Robert - Abba Communications
   Computer & Internet Services
 (509) 624-7159 - www.abbacomm.net


Re: sa-update is broken

Posted by Thomas Hochstein <ml...@ancalagon.inka.de>.
"R Lists06" schrieb:

> Is sa-update broken 

No.

But it does work better if you install all needed dependencies and
follow the instructions. Without dependencies it doesn't run (who
would have guessed?), and without following the instructions the
result may not be what you expected.

-thh

RE: sa-update is broken

Posted by Sietse van Zanen <si...@wizdom.nu>.
I second that. :-)

Sa-update works perfectly........

-----Original Message-----
From: Theo Van Dinter [mailto:felicity@apache.org] 
Sent: Tuesday, December 19, 2006 4:57 PM
To: users@spamassassin.apache.org
Subject: Re: sa-update is broken

On Tue, Dec 19, 2006 at 07:43:28AM -0800, R Lists06 wrote:
> Is sa-update broken or is this just a prolonged and poorly thought up 
> global name for a thread?

The second one. :)

--
Randomly Selected Tagline:
"Do we have the magnitude of P?  A slight nod would do." - Roxanne Tisch

Re: sa-update is broken

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Dec 19, 2006 at 07:43:28AM -0800, R Lists06 wrote:
> Is sa-update broken or is this just a prolonged and poorly thought up global
> name for a thread?

The second one. :)

-- 
Randomly Selected Tagline:
"Do we have the magnitude of P?  A slight nod would do." - Roxanne Tisch

RE: sa-update is broken

Posted by R Lists06 <li...@abbacomm.net>.
With all due respect to all involved.

 

Is sa-update broken or is this just a prolonged and poorly thought up global
name for a thread?

 

 - rh

--
Robert - Abba Communications
   Computer & Internet Services
 (509) 624-7159 - www.abbacomm.net


RE: sa-update is broken

Posted by Sietse van Zanen <si...@wizdom.nu>.
Yeah sure, blame someone else for your own ignorance......

"Mummy I'm stupid, and it's all your fault..."

Sad and funny at the same time. Oh and while you're at it, go shout at some people for trying to help you.

I have four more letters for you. 

RTFM

MF



From: Yves Goergen
Sent: Mon 18-Dec-06 23:20
To: Theo Van Dinter
Cc: users@spamassassin.apache.org
Subject: Re: sa-update is broken


On 18.12.2006 18:04 CE(S)T, Theo Van Dinter wrote:
> On Mon, Dec 18, 2006 at 06:01:38PM +0100, Yves Goergen wrote:
>> BTW, to make the update work on a default SA installation, you need to
>> specify a different path:
>>
>>     # sa-update --updatedir /usr/local/share/spamassassin
>>
>> Is that by intent?
> 
> Um.  No you don't.  In fact, you really don't want to do that.  See
> http://wiki.apache.org/spamassassin/RuleUpdates

Aha, and that stupid little tool can't tell me that before? Maybe a
Wiki-style of a documentation isn't well suited for beginners that don't
know the correct search terms.

Is this the home of the SA documentation?
http://spamassassin.apache.org/doc.html
I wouldn't know where to click at all to find anything on that page.
Looks like a loose collection of some special short notes to me but not
at all like a structured handbook where you can find your topic like in
those printed on paper a couple of years ago. :(

So now my SA setup is supposed to be broken or what? Well, it still
works so I guess when the next SA version comes out, it'll fix this again.

-- 
Yves Goergen "LonelyPixel" <no...@unclassified.de>
Visit my web laboratory at http://beta.unclassified.de

Re: sa-update is broken

Posted by Yves Goergen <no...@unclassified.de>.
On 18.12.2006 18:04 CE(S)T, Theo Van Dinter wrote:
> On Mon, Dec 18, 2006 at 06:01:38PM +0100, Yves Goergen wrote:
>> BTW, to make the update work on a default SA installation, you need to
>> specify a different path:
>>
>>     # sa-update --updatedir /usr/local/share/spamassassin
>>
>> Is that by intent?
> 
> Um.  No you don't.  In fact, you really don't want to do that.  See
> http://wiki.apache.org/spamassassin/RuleUpdates

Aha, and that stupid little tool can't tell me that before? Maybe a
Wiki-style of a documentation isn't well suited for beginners that don't
know the correct search terms.

Is this the home of the SA documentation?
http://spamassassin.apache.org/doc.html
I wouldn't know where to click at all to find anything on that page.
Looks like a loose collection of some special short notes to me but not
at all like a structured handbook where you can find your topic like in
those printed on paper a couple of years ago. :(

So now my SA setup is supposed to be broken or what? Well, it still
works so I guess when the next SA version comes out, it'll fix this again.

-- 
Yves Goergen "LonelyPixel" <no...@unclassified.de>
Visit my web laboratory at http://beta.unclassified.de

Re: sa-update is broken

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Dec 18, 2006 at 06:01:38PM +0100, Yves Goergen wrote:
> BTW, to make the update work on a default SA installation, you need to
> specify a different path:
> 
>     # sa-update --updatedir /usr/local/share/spamassassin
> 
> Is that by intent?

Um.  No you don't.  In fact, you really don't want to do that.  See
http://wiki.apache.org/spamassassin/RuleUpdates

> Also, do I need to restart spamd after an update through sa-update?

Yes.

-- 
Randomly Selected Tagline:
"Bush keeps saying the terrorists hate us for our freedom, and he's working
 damn hard to see that pretty soon, that won't be a problem."
         - Bill Maher, Real Time with Bill Maher, Episode 87

Re: sa-update is broken

Posted by Yves Goergen <no...@unclassified.de>.
On 18.12.2006 16:54 CE(S)T, Bart Schaefer wrote:
> On 12/18/06, Christian Eichert <mo...@mx.homelinux.org> wrote:
>> server:~# perl -MCPAN -e 'install LWP::UserAgent'
>> Can't locate object method "install" via package "LWP::UserAgent" at -e
>> line 1.
> 
> # perl -MCPAN -e shell
> cpan> install LWP::UserAgent

Thank you, that worked. The first one also failed for me. On its way, it
said something about a new CPAN.pm available. Not sure, what it did then
to get LWP::UserAgent installed.

BTW, to make the update work on a default SA installation, you need to
specify a different path:

    # sa-update --updatedir /usr/local/share/spamassassin

Is that by intent?

Also, do I need to restart spamd after an update through sa-update? I
think I need to, the manpage doesn't mention that at all and sa-update
itself remains quiet. (I didn't check the exit code the first time, but
it took a few seconds and created a bunch of files in the given
directory, so I think it actually did something useful.)

-- 
Yves Goergen "LonelyPixel" <no...@unclassified.de>
Visit my web laboratory at http://beta.unclassified.de

Re: sa-update is broken

Posted by Bart Schaefer <ba...@gmail.com>.
On 12/18/06, Christian Eichert <mo...@mx.homelinux.org> wrote:
>
> server:~# perl -MCPAN -e 'install LWP::UserAgent'
> Can't locate object method "install" via package "LWP::UserAgent" at -e
> line 1.

# perl -MCPAN -e shell
cpan> install LWP::UserAgent

Re: sa-update is broken

Posted by Christian Eichert <mo...@mx.homelinux.org>.
Sietse van Zanen wrote:
> perl -MCPAN -e 'install LWP::UserAgent'
> 
> And you might be missing a couple more.
> 
> -Sietse

I think we hit a bug

server:~# perl -MCPAN -e 'install LWP::UserAgent'
Can't locate object method "install" via package "LWP::UserAgent" at -e 
line 1.

can someone provide a sulution for the problem ?

RE: sa-update is broken

Posted by Sietse van Zanen <si...@wizdom.nu>.
perl -MCPAN -e 'install LWP::UserAgent'

And you might be missing a couple more.

-Sietse

-----Original Message-----
From: Yves Goergen [mailto:nospam.list@unclassified.de] 
Sent: Sunday, December 17, 2006 4:16 PM
To: users@spamassassin.apache.org
Subject: sa-update is broken

Hi,
I read in another thread, that I can use sa-update, supposedly to update
my rules, not sure. I just tried and here's what it says:

# sa-update
Can't locate LWP/UserAgent.pm in @INC (@INC contains:
/usr/local/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl) at /usr/bin/sa-update line 92.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 92.

I installed the latest SA with this:
perl -MCPAN -e 'install Mail::SpamAssassin'

I needed to install a bunch of other Perl modules before that worked. Is
there another module that I need to install? I don't know Perl from the
inside, and not at all how to install it.

-- 
Yves Goergen "LonelyPixel" <no...@unclassified.de>
Visit my web laboratory at http://beta.unclassified.de

Re: sa-update is broken

Posted by Theo Van Dinter <fe...@apache.org>.
On Sun, Dec 17, 2006 at 04:16:24PM +0100, Yves Goergen wrote:
> # sa-update
> Can't locate LWP/UserAgent.pm in @INC (@INC contains:

You need to install the appropriate modules.  See the INSTALL doc.

-- 
Randomly Selected Tagline:
"With our judgements as our watches, none go just alike."