You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Don Ireland <sa...@donireland.com> on 2007/12/14 03:08:24 UTC

SALearn problem

I've got a PHP script that passes each message in special "Ham" & "Spam" 
folders through SALearn.  This script is run via a cron job.  The cron 
damon is sending me the following message every time it tries to run my 
script.  What could be causing this?

Thanks.

++++++++++++++++++++++++++++++++++++++++++++++++++++++
The message:

plugin: failed to parse plugin /etc/mail/spamassassin/FuzzyOcr.pm: Can't locate String/Approx.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /etc/mail/spamassassin/FuzzyOcr.pm line 17.
BEGIN failed--compilation aborted at /etc/mail/spamassassin/FuzzyOcr.pm line 17.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/PluginHandler.pm line 97.



My Code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++

Learn as Ham
execute("salearn --no-sync --ham " . $dir . $file);


Learn as Spam
execute("salearn --no-sync --spam " . $dir . $file);


Re: SALearn problem

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Dec 13, 2007 at 09:08:24PM -0500, Don Ireland wrote:
> I've got a PHP script that passes each message in special "Ham" & "Spam" 
> folders through SALearn.  This script is run via a cron job.  The cron 
> damon is sending me the following message every time it tries to run my 
> script.  What could be causing this?
> 
> plugin: failed to parse plugin /etc/mail/spamassassin/FuzzyOcr.pm: Can't 
> locate String/Approx.pm in @INC (@INC contains: 

You apparently don't have String::Aprox installed.

-- 
Randomly Selected Tagline:
"As I uploaded the resultant kernel, a specter of the holy penguin
 appeared before me, and said "It is Good. It is Bugfree". As if wanting
 to re-assure me that yes, it really =was= the holy penguin, it finally
 added "Do you have any Herring?" before fading out in a puff of holy
 penguin-smoke." - Linus Torvalds