On Fri, 29 Apr 2005, Florian Effenberger wrote:

Hi Dave,

No, The "use" construct tells perl to look elsewhere for libraries when
running. All of the above assumes you're installing the modules somewhere
other than where the system would normally look for it. eg You don't have
root access so installed the modules in your home directory. You still
obviously have to build and install the modules (as defined in the perl
install docs), just not into system space.

of course, but in which places do I have to tell SA where to look for the modules? Is it enough to give the path when invoking Makefile.PL, and Makefile.PL correctly modifies SA, or do I have to give it everytime I invoke SA?

In the top of the various perl scripts you'd add the "use line" after where you call perl eg


sa-learn
::::::::::::::
#!/usr/local/perl-5.8.0/bin/perl

eval 'exec /usr/local/stow/perl-5.8.0-extra/bin/perl -T -w -S $0 ${1+"$@"}'
    if 0; # not running under some shell

use strict;

use lib '/opt/spamassassin/mylib';
use File::Spec;




=-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-= David Stern University of Maryland Institute for Advanced Computer Studies

Reply via email to