Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing PERL CPAN modules in local directory

Tags:

perl

cpan

i have a 1and1 hosting account and would like to install some Perl CPAN modules that are not part of the standard host package. Is it possible to install modules without ROOT access? If so, how do i do that? Thanks for the pointers in advance.

like image 730
Krugers Avatar asked Aug 15 '11 23:08

Krugers


People also ask

How do I install CPAN modules?

To install Perl modules using CPAN, you need to use the cpan command-line utility. You can either run cpan with arguments from the command-line interface, for example, to install a module (e.g Geo::IP) use the -i flag as shown.


2 Answers

This is an excellent article about installing perl modules as a regular (non-root) user:

Installing Perl Modules as a Non-Root User

like image 79
ennuikiller Avatar answered Oct 19 '22 01:10

ennuikiller


As already said: local::lib

cpanm  --local-lib=~/Program/Perl/Lib Tk 
like image 43
Tinmarino Avatar answered Oct 19 '22 00:10

Tinmarino