Mar 20
Install cpan on a server without root access
As you can see from reading this discussion, installing a cpan module, without root access, can be daunting. When you managed to install your own compiled Perl on a non-root account, this is in most cases earlier or later the next step/problem. Do this:
login via ssh
ssh remotehost.com -l myusername
create these directories:
myperl/man
myperl/man/man1
myperl/man/man3
then start your perl and cpan
path/to/my/perl -MCPAN -e ’shell’
in cpan enter:
cpan> o conf makepl_arg “LIB=/path/to/myperl/lib \
INSTALLMAN1DIR=/path/to/myperl/man/man1 \
INSTALLMAN3DIR=/path/to/myperl/man/man3″
the best thing to do is to copy in these lines via [CTRL]+[SHIFT]+[V] and after that remove all wrong newlines
Finally
cpan> o conf commit
sets this conf default for the future
After that, installing things like Bugzilla is simple:
install Bundle::Bugzilla
just remember to define the path to your libs in scripts
use lib “/path/to/lib/”;
