Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: My local libs are not being used by my browser

by Lady_Aleena (Curate)
on Sep 29, 2016 at 13:11 UTC ( #1172923=note: print w/replies, xml ) Need Help??


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

I have /home/me/Documents/fantasy (where my site lives on my computer) and the location on Xecu.net. Everything on Xecu.net is fine, I can install modules into a local lib they set up for me. It is local libs in /home/me/perl5 which my Apache is ignoring because I do not know how to tell Apache to look at them.

One way to avoid having to wrestle Apache anymore is to just sudo cpan modules instead of just cpan modules. I did it that way on my last install of Debian because I did not know how to set up local libs.

I upload files to Xecu.net with FileZilla. I never use the terminal emulator to upload files to Xecu.net.

That reminds me, I need to set up FileZilla again.

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

Replies are listed 'Best First'.
Re^3: My local libs are not being used by my browser
by Your Mother (Bishop) on Sep 29, 2016 at 13:21 UTC

    I'm still not clear on your setup. But if I'm following you, this might do it. It's not pretty, has to go in the top of every CGI, but it will allow you to use local::lib locally and on your host without messing with apache or apache's ENV.

    #!/usr/bin/env perl use strict; use warnings; my $local_lib; BEGIN { $local_lib = $YOUR_XECU_LOCAL_LIB_DIR if -d $YOUR_XECU_LOCAL_LIB +_DIR; $local_lib ||= $YOUR_HOME_COMPUTER_LOCAL_LIB_DIR; }; use local::lib $local_lib; # ... your script ...

      I got it! I got it!

      I had to go into apache2.conf (Debian's httpd.conf) and add the following line:

      SetEnv PERL5LIB /home/me/perl5/lib/perl5

      After that, it was just adjusting a value in a script, and I can use local perl libs instead of touching root's libs. This gives me a win today!

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

      That is 406 files if I include all my .pl and .pm files. I'd rather take a chance with using root's libs.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2019-04-21 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (110 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!