Edward Prendergast wrote:
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
  ^^^^^^^^^^^^^^^^^^
This looks a little fishy...

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.

Not that this really answers your question, but I'm curious why you felt the need to install your own Perl. I've only come across one program that had any recommendation to avoid most distros' bundled Perl (ecommerce package Interchange) and with Perl 5.8/5.10 that's largely for performance reasons, IIRC relating to Perl threading.

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:

.... O_o This seems overly complex (and possibly fragile) to me; from the systems I've used an alternate Perl for something all of the heavy magic like this is set up when you build Perl itself; any further magic is handled internally by simply calling the right Perl binary.

Since I don't recall any specifics, I'm trying it out to see how things work; the system I'm trying this on is i686 but otherwise an up-to-date CentOS 5(.4).

-kgd

Reply via email to