On Jan 24, 2005, at 5:28 PM, John Michael Zorko wrote:


Hello, all ...

I've a problem where Perl code which uses DBI (DBD::Pg) works in a standalone Perl script, as well as a standalone SOAP server using SOAP::Lite. However, the same code fails under mod_perl and Apache. Looking in the Apache log, it fails because Pg.pm isn't in @INC.

My question is simple: This code has to run on multiple platforms (Debian, Cygwin and Mac OSX) so I would rather not put a "use lib ( "path/to/fink/Perl/packages" )" in the code. Is there a way to have @INC include the Fink Perl package path, outside of the actual Perl code? Perhaps an Apache configuration option? I realize this may be slightly off-topic, but i'm not sure if this is something in Fink-land or Apache-land, hence my question.


Fink itself includes the desired paths in @INC by setting the PERL5LIB environment variable to /sw/lib/perl5:/sw/lib/perl5/darwin . Could you run Apache with that environment variable set?


  -- Dave



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to