Other answers are already on Stackoverflow:
- How to install modules locally without root access ...
- How can I use the new Perl module without installation permission?
From perlfaq8:
How to save your own catalog of modules / libraries?When you create modules, tell Perl where to install the modules.
For distributions based on Makefile.PL, use the INSTALL_BASE parameter when creating the Makefile:
perl Makefile.PL INSTALL_BASE=/mydir/perl
You can set this in the CPAN.pm configuration so that the modules are automatically installed in your private library when using the CPAN.pm shell:
% cpan cpan> o conf makepl_arg INSTALL_BASE=/mydir/perl cpan> o conf commit
For Build.PL-based distributions, use the --install_base option:
perl Build.PL --install_base /mydir/perl
You can also configure CPAN.pm to automatically use this option:
% cpan cpan> o conf mbuildpl_arg '--install_base /mydir/perl' cpan> o conf commit
brian d foy Feb 12 '09 at 23:02 2009-02-12 23:02
source share