Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: PERL5LIB not in @INC

by haj (Vicar)
on Mar 23, 2024 at 15:29 UTC ( [id://11158501]=note: print w/replies, xml ) Need Help??


in reply to PERL5LIB not in @INC

In my (Ubuntu) installation, @INC holds an entry /usr/local/lib/site_perl which, as far as I am aware, is intended to hold such "common modules". In my system, this directory does not exist, and I don't know where it comes from.

For the special case of Apache: Usually Apache runs CGI processes in a rather bare environment. You can add your directory to the Apache configuration with the SetEnv directive.

Replies are listed 'Best First'.
Re^2: PERL5LIB not in @INC
by Bod (Parson) on Mar 23, 2024 at 16:14 UTC
    In my (Ubuntu) installation, @INC holds an entry /usr/local/lib/site_perl which, as far as I am aware, is intended to hold such "common modules"

    Likewise...I did notice that in my @INC but didn't investigate if it actually exists. It didn't, but it does now 🙂
    Problem solved!

    I've gone down this route instead of SetEnv because some of the common modules may be used outside of Apache at some point in the future.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-07-25 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.