Hi,
I'm getting errors when I trying to install Mail::SpamAssassin via cpan.
The crux of this seems to be:
Can't locate Digest/SHA1.pm in @INC (@INC contains: ../blib/lib
@@INSTALLSITELIB@@ /opt/perl5/lib/5.10.1/x86_64-linux
/opt/perl5/lib/5.10.1 /opt/perl5/lib/site_perl/5.10.1/x86_64-linux
/opt/perl5/lib/site_perl/5.10.1) at
../blib/lib/Mail/SpamAssassin/Bayes.pm line 61.
Whole output is available here: http://pastebin.com/m404a0ffc
This is already installed via CPAN and lives in
/opt/perl/lib/perl5/x86_64-linux/Digest/SHA1.pm
It is accessible via @INC in other scripts. For example if I run perl
-MDigest::SHA1 -e 'exit' I don't get any errors. @INC for a normal perl
script looks like this:
]# perl -e 'print join(", ", @INC)'
/opt/perl5/lib/perl5/x86_64-linux, /opt/perl5/lib/perl5,
/opt/perl5/lib/perl5/x86_64-linux, /opt/perl5/lib/5.10.1/x86_64-linux,
/opt/perl5/lib/5.10.1, /opt/perl5/lib/site_perl/5.10.1/x86_64-linux,
/opt/perl5/lib/site_perl/5.10.1, /opt/perl5/lib/5.10.1/x86_64-linux,
/opt/perl5/lib/5.10.1, /opt/perl5/lib/site_perl/5.10.1/x86_64-linux,
/opt/perl5/lib/site_perl/5.10.1, .
The reason perl lives in /opt is that this is a CentOS 5.4 and I'm
looking to bypass the perl that comes with RPM without overwriting or
deleting it so it's still around if something RPM-specific needs to use
it. The way I ensure that I'm using the right version of perl while I'm
trying to install Mail::SpamAssassin via the following environment
variables in /root/.bashrc:
export MODULEBUILDRC="/opt/perl5/.modulebuildrc"
export PERL_MM_OPT="INSTALL_BASE=/opt/perl5"
export
PERL5LIB="/opt/perl5/lib/perl5:/opt/perl5/lib/perl5/x86_64-linux:/opt/perl5/lib/5.10.1:/opt/perl5/lib/site_perl/5.10.1"
export PATH="/opt/perl5/bin:$PATH"
]# grep export ~/.bashrc
export MODULEBUILDRC="/opt/perl5/.modulebuildrc"
export PERL_MM_OPT="INSTALL_BASE=/opt/perl5"
export
PERL5LIB="/opt/perl5/lib/perl5:/opt/perl5/lib/perl5/x86_64-linux:/opt/perl5/lib/5.10.1:/opt/perl5/lib/site_perl/5.10.1"
export PATH="/opt/perl5/bin:$PATH"
]# perl -v
This is perl, v5.10.1 (*) built for x86_64-linux
I'm running all of this as root.
Any pointers in the right direction would be much appreciated.
Thanks,
Edward
************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any action taken or
omitted to be taken in reliance on it, any form of reproduction,
dissemination, copying, disclosure, modification, distribution and/or
publication of this E-mail message is strictly prohibited and may be
unlawful. If you have received this E-mail message in error, please notify
us immediately. Please also destroy and delete the message from your
computer.
************