Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hi Theo, If you're installing it into a different place and need modules from a different place, you can do something like the following, depending on your shell: export PERL5LIB=/usr/local/share/perlmods I'll add that to the init script and see if it works or not. ;-) Thanks for your help! Florian

Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hi Dave, In the top of the various perl scripts you'd add the "use line" after where you call perl eg okay, thanks a lot, then I'll look into it! Florian

Re: supplying additional path for Perl modules

2005-04-29 Thread Theo Van Dinter
On Fri, Apr 29, 2005 at 05:21:43PM +0200, Florian Effenberger wrote: > I'm absolutely no Perl expert, so I thought I'd ask here. ;-) Where can > I set PERL5LIB? Most libraries are installed in the default location, > but I have installed some libraries (e.g. a newer Net::DNS) in other > paths, v

Re: supplying additional path for Perl modules

2005-04-29 Thread dave
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 install

Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hi Brian, Just set PERL5LIB on the command line that you use to start spamassassin. (if you are using BASH or KSH anyway.) PERL5LIB="/usr/local/share/perlmods" spamassassin or just put it in the envronment that SA runs from. thanks, at least for Makefile.PL it seems to work! :-) Will try to put

Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
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

Re: supplying additional path for Perl modules

2005-04-29 Thread Brian R. Jones
Florian Effenberger wrote: Hi Theo, Set PERL5LIB appropriately? This is a perl question, not SA specific. :) I'm absolutely no Perl expert, so I thought I'd ask here. ;-) Where can I set PERL5LIB? Most libraries are installed in the default location, but I have installed some libraries (e.g. a

Re: supplying additional path for Perl modules

2005-04-29 Thread dave
On Fri, 29 Apr 2005, Florian Effenberger wrote: Hi Dave, use lib "/my/perl_directory/lib/site_perl"; or sometimes you can just say: use "/my/perl_directory"; is it enough to add it to Makefile.PL, or do I need to add it to every single SpamAssassin .PL file? No, The "use" construct tells perl to

Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hi Dave, use lib "/my/perl_directory/lib/site_perl"; or sometimes you can just say: use "/my/perl_directory"; is it enough to add it to Makefile.PL, or do I need to add it to every single SpamAssassin .PL file? Thanks! FLorian

Re: supplying additional path for Perl modules

2005-04-29 Thread dave
On Fri, 29 Apr 2005, Florian Effenberger wrote: Hi Theo, Set PERL5LIB appropriately? This is a perl question, not SA specific. :) I'm absolutely no Perl expert, so I thought I'd ask here. ;-) Where can I set PERL5LIB? Most libraries are installed in the default location, but I have installed som

Re: supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hi Theo, Set PERL5LIB appropriately? This is a perl question, not SA specific. :) I'm absolutely no Perl expert, so I thought I'd ask here. ;-) Where can I set PERL5LIB? Most libraries are installed in the default location, but I have installed some libraries (e.g. a newer Net::DNS) in other pa

Re: supplying additional path for Perl modules

2005-04-29 Thread Theo Van Dinter
On Fri, Apr 29, 2005 at 02:12:59PM +0200, Florian Effenberger wrote: > what is the right way for supplying additional path for Perl modules in > a self-compiled (perl Makefile.PL && make && make install) SpamAssassin? > I have modules in non-standard directories I

supplying additional path for Perl modules

2005-04-29 Thread Florian Effenberger
Hello, what is the right way for supplying additional path for Perl modules in a self-compiled (perl Makefile.PL && make && make install) SpamAssassin? I have modules in non-standard directories I would like to include for compilation. Thanks Florian