Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
PerlSwitches
 

Index | Next | Previous | View Flat


orasnita at gmail

Sep 19, 2008, 9:47 AM


Views: 463
Permalink
PerlSwitches

Hi,

I try to load a Catalyst application using mod_perl, but if I use
PerlSwitches for specifying the lib dir, it gives an error telling that the
perl module can't be found:

PerlSwitches -Ie:/web/Acces/lib
PerlModule Acces

And the error:

[Fri Sep 19 19:44:12 2008] [error] Can't locate Acces.pm in @INC (@INC
contains: E:/perl510/site/lib E:/perl510/lib . E:/apache229) at (eval 3)
line 3.\n

It seems that the path I want is not added in @INC. Am I doing something
wrong?
I have also tried using:

PerlSwitches -I"e:/web/Acces/lib"

but with no good results.

It works fine if I use:
PerlRequire "e:/web/Acces/script/preload.pl"

and in preload.pl I use

use lib 'e:/web/Acces/lib';
use Acces;
1;

Is there a way of not using an external preload.pl file but load the perl
module directly in httpd.conf (under Windows XP)?

Thank you.

Octavian

Subject User Time
PerlSwitches orasnita at gmail Sep 19, 2008, 9:47 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.