Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: module not found errors in a mod_perl handler

by hippo (Bishop)
on Dec 15, 2022 at 21:23 UTC ( [id://11148905]=note: print w/replies, xml ) Need Help??


in reply to Re^2: module not found errors in a mod_perl handler
in thread module not found errors in a mod_perl handler

Sorry to be clear, HTTP::Config is not located in the /my/handler/lib directory

Yes, I understood that and it doesn't matter whether the module is there or not. You have set it up so that the process looks there first and if it doesn't have the rights to do so, that results in the fatal error message you have seen. Here's a trivial demo of this principle:

$ perl -I/root/bin -e 'use CGI' Can't locate CGI.pm: /root/bin/CGI.pm: Permission denied at -e line +1. BEGIN failed--compilation aborted at -e line 1. $ perl -e 'use CGI' $

The first attempt fails because my (non-root) user has no access to the first path in @INC. The second one succeeds.


🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found