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.