You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mike Spamassassin <sa...@ernstoff.net> on 2005/06/05 21:22:40 UTC
sa-learn error message
I have installed SpamAssassin 3.0.3 on Debian Linux using the
SingleUserUnixInstall instructions on the SpamAssassin Wiki, as I do not
have root access.
Perl version is 5.6.1
Everything seems to work OK, but I get one error message.
When I run sa-learn --sync I get
"Parameter to use lib must be directory, not file at
$HOME/local/lib/perl5/i386-linux/Razor2/Client/Agent.pm line 13"
I had the same problem with SpamAssassin 3.0.2
Can anyone point me in the right direction?
I know Unix but not much Linux and very little perl.
Thanks in advance
Mike
Re: sa-learn error message
Posted by Theo Van Dinter <fe...@apache.org>.
On Sun, Jun 05, 2005 at 08:22:40PM +0100, Mike Spamassassin wrote:
> Everything seems to work OK, but I get one error message.
> When I run sa-learn --sync I get
> "Parameter to use lib must be directory, not file at
> $HOME/local/lib/perl5/i386-linux/Razor2/Client/Agent.pm line 13"
>
> Can anyone point me in the right direction?
> I know Unix but not much Linux and very little perl.
Arguably this is a Razor question (it's their module), not a
SpamAssassin-specific question, but ...
In my install, line 13 in Agent.pm is:
use lib qw(lib);
So I'm assuming you have a file named "lib" somewhere. Possibly in
the directory where you're calling sa-learn, though I can't be certain
there's no chdir'ing going on.
--
Randomly Generated Tagline:
"4) Bobby Flay is coming to your house to tape an episode of "Food Nation"
so you thoughtfully replace your 'Welcome' mat with a large wooden
cutting board."
- From the Top 12 Signs You've Been Watching Too Much FoodTV
Re: sa-learn error message
Posted by Mike Spamassassin <sa...@ernstoff.net>.
>> Everything seems to work OK, but I get one error message.
>> When I run sa-learn --sync I get
>> "Parameter to use lib must be directory, not file at
>> $HOME/local/lib/perl5/i386-linux/Razor2/Client/Agent.pm line 13"
>
> Just from the error message, I would assume you had set up Razor, or at
> least enabled the razor rules. And there is something wrong with the way
> you set it up. It looks like you have to specify a path someplace (maybe
> in
> razor configuration?) and you have pointed to a file instead of a
> directory.
>
> Loren
>
>
Thanks Loren and Theo, both for the suggestions and for responding so
quickly.
I had assumed the lib was the name of some kind of a perl variable.
Once you pushed me in the direction of it being the name of a file or
directory I did a "find" from local and found two occurrences, one being a
file the other being a directory. The first one, the lib file was not part
of SpamAssassin or razor so I moved it, and now the error message has
gone.
Mike
Re: sa-learn error message
Posted by Loren Wilton <lw...@earthlink.net>.
> Everything seems to work OK, but I get one error message.
> When I run sa-learn --sync I get
> "Parameter to use lib must be directory, not file at
> $HOME/local/lib/perl5/i386-linux/Razor2/Client/Agent.pm line 13"
Just from the error message, I would assume you had set up Razor, or at
least enabled the razor rules. And there is something wrong with the way
you set it up. It looks like you have to specify a path someplace (maybe in
razor configuration?) and you have pointed to a file instead of a directory.
Loren