> Geoff Soper writes: >> > Geoff Soper writes: >> >> bash-2.05a$ perl -V >> >> Summary of my perl5 (revision 5.0 version 6 subversion 1) >> configuration: >> > .............. >> >> @INC: >> >> /home/alphaworks/perl_modules/lib/perl5/site_perl/5.6.1/i386-linux/ /usr/lib/perl5/5.6.1/i386-linux >> >> /usr/lib/perl5/5.6.1 >> >> /usr/lib/perl5/site_perl/5.6.1/i386-linux >> >> /usr/lib/perl5/site_perl/5.6.1 >> >> /usr/lib/perl5/site_perl/5.6.0 >> >> /usr/lib/perl5/site_perl >> >> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux >> >> /usr/lib/perl5/vendor_perl/5.6.1 >> >> /usr/lib/perl5/vendor_perl >> > >> > Note the first line. Now check this: >> > >> >> I'm happy the right Perl is being used: >> >> >> >> bash-2.05a$ which perl >> >> /usr/bin/perl >> >> >> >> But when I run SpamAssassin Digest::SHAI isn't found and >> >> /home/alphaworks/perl_modules/lib/perl5/site_perl/5.6.1/i386-linux/ doesn't seem to be in @INC : >> >> >> >> bash-2.05a$ /home/alphaworks/spamassassin/3.0.2/bin/spamassassin Can't locate Digest/SHA1.pm in @INC (@INC contains: >> >> /home/alphaworks/spamassassin/3.0.2/lib/perl5/site_perl/5.6.1/i386-linux /home/alphaworks/spamassassin/3.0.2/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 >> >> /usr/lib/perl5/site_perl/5.6.1/i386-linux >> /usr/lib/perl5/site_perl/5.6.1 >> >> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl >> >> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux >> >> /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl) >> > >> > note: no >> > /home/alphaworks/perl_modules/lib/perl5/site_perl/5.6.1/i386-linux/ listed there. that's the problem. >> >> Forgive me if I've missed your point but this is exactly what I'm pointing >> out above? I see the problem but don't see why it's happening. > > SpamAssassin doesn't change that, so something else in the configuration is not using the same @INC path. are you sure when you run > /home/alphaworks/spamassassin/3.0.2/bin/spamassassin , that script is running the right perl binary? and you have the same environment?
Does anyone here know enough about Unix / Perl to see what is going on here? I'm typing these commands in a single session through a SSH session to the server exactly as shown in my first message. As far as I can see it should be sharing the environment. The spamassassin file is as-installed and the first line has the Perl location as given by "which perl". Can anyone help? Thanks, Geoff