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);