I had similar problems installing SA 2.60 recently.
The problem is that taint mode, '-T', disables perl's use of PERL5LIB.
Here's part of the "perlrun" documentation:
When running taint checks (either because the
program was running setuid or setgid, or the
-T switch was used), neither variable (PERL5LIB
or PERLLIB) is used. The program should instead
say:
use lib "/my/directory";
This means that if you try to install SA and its prerequisites to a
private directory, things don't work very well. The problem is that
PERL5LIB and using "perl Makefile.PL LIB=<private_dir>" have different
results.
On my setup, if I set PERL5LIB to ~/perldir, and I then run a perl
script that prints out INC, perl expands ~/perldir to 4 directories:
~/perldir/lib/5.6.0/i386-linux:~/perldir/lib/5.6.0:~/perldir/lib/i386-linux:~/perldir/lib
But, if I use "perl Makefile.PL LIB=<private_dir>", I just get that one
private directory added to INC. You can't add multiple directories to
LIB.
To make a long story short, I decided the easiest solution was to build
perl like this:
perl Makefile.PL LIB=~/perldir/lib/i386-linux PREFIX=~/perldir
~/perldir/lib/i386-linux is the directory where HTML/Parser.pm resides
in my setup.
I hope this helps.
On Thu, 2003-10-23 at 13:53, [EMAIL PROTECTED] wrote:
> It is set, look at my first email.
>
> This works:
> perl -e 'use HTML::Parser 3.24;'
> This doesn't:
> perl -T -e 'use HTML::Parser 3.24;'
>
>
> Quoting Theo Van Dinter <[EMAIL PROTECTED]>:
>
> > On Thu, Oct 23, 2003 at 09:37:28AM -0500, [EMAIL PROTECTED] wrote:
> > > So, where do I go from here? Do I have to edit @INC inside SpamAssassin?
> > Or,
> > > should I just remove the -T?
> >
> > ewwww. -T is good, and you shouldn't modify @INC. try setting PERL5LIB.
> >
> > --
> > Randomly Generated Tagline:
> > "How should I know if it works? That's what beta testers are for.
> > I only coded it." - Linus Torvalds
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community? Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
--
David Smith
[EMAIL PROTECTED]
Red Hat, Inc.
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk