Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Your Mother (Archbishop)
on Sep 29, 2016 at 12:47 UTC ( [id://1172917]=note: print w/replies, xml ) Need Help??


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

Messing with the system Perl is a very bad idea. Depending on your OS, you could hose your computer. And if I'm following, it won't fix your real problem even if it works. Let's backup.

You seem to be talking about two different setups. Your home computer/server and your host server. Is this right?

Installing things in your system on your computer will have no effect on a remote host/server. Can you upload files/directories to your host *outside* your cgi-bin and your www-root?

Do you have a shell account to ssh into your host? Or is it pure (S)FTP?

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 13:11 UTC

    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

      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://1172917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found