PERL5LIB/SpamAssassin Problem

apps

#1

I’m trying to install various SpamAssassin plugins and get the following error:

[broadway:~]$ spamassassin --lint[32525] warn: plugin: failed to parse plugin (from @INC): Can’t locate Crypt/OpenSSL/RSA.pm in @INC (@INC contains: /home/dankohn/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/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 /home/dankohn/share/perl/5.8.4/Mail/DKIM/PublicKey.pm line 181.
[32525] warn: BEGIN failed–compilation aborted at /home/dankohn/share/perl/5.8.4/Mail/DKIM/PublicKey.pm line 181.
[32525] warn: Compilation failed in require at /home/dankohn/share/perl/5.8.4/Mail/DKIM/Signature.pm line 13.
[32525] warn: BEGIN failed–compilation aborted at /home/dankohn/share/perl/5.8.4/Mail/DKIM/Signature.pm line 13.
[32525] warn: Compilation failed in require at /home/dankohn/share/perl/5.8.4/Mail/DKIM/Verifier.pm line 13.
[32525] warn: BEGIN failed–compilation aborted at /home/dankohn/share/perl/5.8.4/Mail/DKIM/Verifier.pm line 13.
[32525] warn: Compilation failed in require at /home/dankohn/share/perl/5.8.4/Mail/SpamAssassin/Plugin/DKIM.pm line 60.
[32525] warn: BEGIN failed–compilation aborted at /home/dankohn/share/perl/5.8.4/Mail/SpamAssassin/Plugin/DKIM.pm line 60.
[32525] warn: Compilation failed in require at (eval 74) line 1.

In this error, @INC contains /home/dankohn/share/perl/5.8.4 and not the several other Perl directories beneath my home directory.

But when I run:

[broadway:~]$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
[other stuff]
%ENV:
PERL5LIB="/home/dankohn/perlmods/lib/perl/5.8:/home/dankohn/perlmods/lib/perl/5.8.4:/home/dankohn/lib/perl/5.8:/home/dankohn/lib/perl/5.8.4:/home/dankohn/perlmods/share/perl/5.8:/home/dankohn/perlmods/share/perl/5.8.4"
@INC:
/home/dankohn/perlmods/lib/perl/5.8
/home/dankohn/perlmods/lib/perl/5.8.4
/home/dankohn/lib/perl/5.8
/home/dankohn/lib/perl/5.8.4
/home/dankohn/perlmods/share/perl/5.8
/home/dankohn/perlmods/share/perl/5.8.4
/etc/perl
/usr/local/lib/perl/5.8.4
/usr/local/share/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
.

This seems to show that my Perl is set up correctly.

Why is @INC showing differently in spamassassin versus from Perl? Does it have something to do with taint?

My .bash_profile contains: export PERL5LIB=/home/dankohn/perlmods/lib/perl/5.8:/home/dankohn/perlmods/lib/
perl/5.8.4:/home/dankohn/lib/perl/5.8:/home/dankohn/lib/perl/5.8.4:/home/dankoh
n/perlmods/share/perl/5.8:/home/dankohn/perlmods/share/perl/5.8.4

What should I change that to?

Note that perl -e ‘require Crypt::OpenSSL::RSA’ returns without an error, as the file perlmods/lib/perl/5.8.4/Crypt/OpenSSL/RSA.pm exists.

Thanks in advance for any help you can provide.