Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Installing Perl modules locally

by Joost (Canon)
on Apr 07, 2005 at 17:08 UTC ( #445789=note: print w/replies, xml ) Need Help??

in reply to Re^2: Installing Perl modules locally
in thread Installing Perl modules locally

the prefix specifies the "base directory", so everything that gets installed will get installed relative to that directory. this means that, in this example the modules will go somewhere in "/tmp/myperl5/lib/perl5/site_perl/5.8.6" (depending on your perl version number), manpages will got in "/tmp/myperl5/man/...." etc.

If you then want to use the libraries need to make sure the perl interpreter knows where to find them: you can set the PERL5LIB environment variable to "/tmp/myperl5/lib/perl5/site_perl/5.8.6" or put use lib '/tmp/myperl5/lib/perl5/site_perl/5.8.6'; in your code.

And yes, you can basically use any directory you like, though dirs with spaces in their name tend to cause confusion.

If you want to have more control over which parts of the installation go where, take a look at the ExtUtils::MakeMaker documentation.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2019-07-20 03:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found