Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Lady_Aleena (Priest)
on Sep 29, 2016 at 13:11 UTC ( [id://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 (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172923]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found