in reply to My local libs are not being used by my browser

*Probably* just put this at the top of your CGIs(? If not CGIs, follow up with more info).

use local::lib "/home/me/perl5";

As Anymonk alluded, apache runs the webserver and knows nothing about your environment and shell. You can set this up in your apache config files but putting it in the scripts/CGIs is probably easier, clearer for now.

Replies are listed 'Best First'.
Re^2: My local libs are not being used by my browser
by Lady_Aleena (Priest) on Sep 29, 2016 at 03:51 UTC

    Your Mother, that won't work. My scripts have been written in such a way that they can be uploaded to a remote server and work just as they do on my computer. So, if I add that line to my scripts locally, they will break remotely since my remote host does not have a directory called /home/me/perl5. I do not know where they remote host puts the local libs, all I know is they work there.

    So, if I can not get apache to see my local libs, I will sudo cpan all the modules to to root's libs and let the local libs just sit there.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena

      You can easily print the list of library paths in @INC (see later). After omitting seemingly system paths (depends on your system environment), you would (hopefully) be left with the path(s) related to your account. Use that path in use lib ....

      Create the CGI program that will run ...

      print join "\n", sort @INC;

        Nevermind as I was thinking along the lines of OP having trouble on a remote host, with minimal control over the setup. And, I might have not noticed @INC list already mentioned.