Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: mod_perl @INC/use base trouble

by Gilimanjaro (Hermit)
on Aug 13, 2004 at 11:31 UTC ( [id://382615]=note: print w/replies, xml ) Need Help??


in reply to Re^2: mod_perl @INC/use base trouble
in thread mod_perl @INC/use base trouble

Try adding an explicit
use Doc::DBI;
before your 'use base'. If I remember correctly some perl/base versions just modified @ISA with 'use base', while newer ones actually use'd it when it wasn't loaded yet.

Your mod_perl was probably compiled with an older perl version than the command line version you're running. If so, you'll want to fix that or the version difference will pop up on a regular basis to bite your rearend...

Replies are listed 'Best First'.
Re^4: mod_perl @INC/use base trouble
by Jaap (Curate) on Aug 13, 2004 at 11:53 UTC
    That did not help either. I am now asking the sysadmin to change the perl executable to the same i am using on the command line. Although both are 5.6.1
      He won't be happy; rebuilding mod_perl is not always trivial.

      You may want to print out @INC from your mod_perl script and verify the paths are correct, and that the user Apache is running under has read rights on all the modules, and read and execute rights on all directories the modules are located in. Your own account and the one mod_perl/Apache runs as are probably different, so mod_perl may have difficulty finding the Class::DBI or Doc::DBI modules because of permissions...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found