Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Installation of modules in home directory

by bambam
on May 07, 2001 at 13:05 UTC ( #78457=perlquestion: print w/ replies, xml ) Need Help??
bambam has asked for the wisdom of the Perl Monks concerning the following question:

How can I install modules on my home directory? When I run 'make install', I get permission denied as it tried to install into the perl lib.

How can I include the self-installed modules in @INC?

Comment on Installation of modules in home directory
Re: Installation of modules in home directory
by Eureka_sg (Monk) on May 07, 2001 at 13:12 UTC

    To include your own path, you can use one of the following:

    1) change the environment variable,PERL5LIB
    2)  use lib 'path/to/module_folder';
    3) #!/path/to/perl -w -I/path/to/module_folder

Re: Installation of modules in home directory
by wardk (Deacon) on May 07, 2001 at 17:46 UTC
Re: Installation of modules in home directory
by chipmunk (Parson) on May 07, 2001 at 18:00 UTC
    Here's another way to do it:
    perl Makefile.PL PREFIX=$HOME/dir make make test make install

      or better yet (for the final step)
      make pure_install
      which will (as I understand it) keep it from trying to install PODs in places you can't write to. In any case, it works (or rather, it works for me) and it emits fewer error messages in the process, which is a nice bonus.



      If God had meant us to fly, he would *never* have given us the railroads.
          --Michael Flanders

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-10-20 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls