On Jan 22, 2009, at 12:47 AM, Fritz Borgstedt wrote: > Questions and Answers for users of ASSP Anti-Spam SMTP Proxy > <assp-user@lists.sourceforge.net> schreibt: >> The thing is, I feel this could be an ASSP issue. There is >> nothing that says that perl must list in /usr/bin/perl, but ASSP >> assumes it is there, and that modules are also in a semi popular >> location. > > The @INC array is a list of directories ASSP searches when attempting > to load modules. To display the current contents of the @INC > array:perl -e "print join(\"\n\", @INC);" > > The following two methods may be used to append to Perl's @INC array: > 1. Add the directory to the PERL5LIB environment variable.2. Add use > lib 'directory'; in your Perl script.
Fritz, thank you! I am a beginner perl user, this is very helpful. MacPorts very much tries to be self contained, so changing the environment variable would be a last resort, since it lives outside of where MacPorts puts it's files. I edited ASSP to use a new path to perl, and all but 3 perl mods looked in the correct location. /opt/local/bin/perl -e 'print join "\n", @INC' /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl Do you have any idea why three mods that ASSP needs were still looking in my default perl locations on Mac OS X? I would like to go with adding in use lib 'path'; in ASSP, where would be the best place to put this in ASSP? Other than changing the #!/usr/bin/perl at the top of all ASSP scripts, is there anything else I should look into when using a perl that is not in that location? Thank you for any help. -- Scott ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Assp-user mailing list Assp-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/assp-user