I wanted to use the Log4Perl logging modules which are available on CPAN in my application. I've coded it all up perfectly fine on my PC, but I now want to actually move it onto the cgi server. I saw on http://portal.f9.net.uk/central/forums/viewtopic.php?t=2926&highlight=cpan that it can be achieved by just obtaining the libraries and then copying them to where the script is running from. That's fine, but life would be easier if I could use CPAN.
How do I actually go about setting up CPAN to use a local directory?
takealeft@cshell02:~$ perl -MCPAN -e shell
Terminal does not support AddHistory.
Your configuration suggests "/root/.cpan" as your
CPAN.pm working directory. I could not create this directory due
to this error: mkdir /root/.cpan: Permission denied at /usr/share/perl/5.8/CPAN.pm line 553
Please make sure the directory exists and is writable.
Once I've actually downloaded these and installed them, how do I then get them to be referred to by my script(s) (if all my personally download libs are in a separate folder to the script)?