Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: How to install Perl modules locally on Unix?

by slugger415 (Monk)
on Nov 29, 2017 at 16:40 UTC ( [id://1204534]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to install Perl modules locally on Unix?
in thread How to install Perl modules locally on Unix?

Ok I was able to get it working by running the EXPORT commands from the command line. I'll work with my service provider to figure out how to automate that.

Thanks so much for your help, I'm up and running!

Scott

  • Comment on Re^4: How to install Perl modules locally on Unix?

Replies are listed 'Best First'.
Re^5: How to install Perl modules locally on Unix? (updated)
by haukex (Archbishop) on Dec 02, 2017 at 11:19 UTC

    Sorry for the late reply, I've been busy. I'm glad to help!

    I'll work with my service provider to figure out how to automate that.

    Depending on where you want the new library path to take effect, the ways to best do that differ:

    If it's the shell, then as choroba pointed out, maybe you are using a shell other than bash and that shell uses a different initialization script into which you need to put the PERL5LIB etc. variable definitions. Try the command echo $SHELL to find out which shell it is <update> is the default shell, which may be different from the currently running shell (thanks for pointing this out, choroba) - you might try a command like pstree $$ to help figure out the currently running shell. </update>

    If it's for the CGI scripts, then note that web servers will usually provide their own, quite restricted, environment to CGI scripts. There are several ways to go about telling the CGI script to look in your home directory for modules, but in my experience, if this script is running on a single provider and the directory structure is unlikely to change, using lib from within the CGI script is often easiest. Usually that'll look something like use lib '/home/yourusername/perl5/lib/perl5'; - try echo $HOME in the shell to find out your home directory location. Also note that the web server needs permissions to access that directory (generally 755 for directories and 644 for files), since the web server will likely be running under a different username, such as nobody.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found