Stephen Howard wrote:
>
> You could always install your own local copy of the module.
...and doing that can be pretty easy. Here's a HOWTO to walk you through
a one-time setup you can do to use the handy CPAN.pm module to install
local copies of modules without root access:
* Create the directory to store your CPAN/MyConfig file in.
$ mkdir -p ~user/.cpan/CPAN
* Locate the primary CPAN Config file and make a personal copy
of it.
$ perldoc -m CPAN::Config >~user/.cpan/CPAN/MyConfig.pm
* Set an environment variable for CPAN.pm knows where to find
your personal module modules. Save this in your login resource file
to make it permanment (.profile works for the bash shell).
# this way to set an environment variable may be specific
# to the bash shell-- there's probably a more portable way
to do it.
$ export PERL5LIB=~user/perllib
* Edit your MyConfig.pm file. Here is an example of a minimal
set of changes which may be sufficient for most people. For details on
the format of this file, refer to perldoc CPAN.pm
'build_dir' => q[~user/.cpan/build],
'cpan_home' => q[~user/.cpan],
'keep_source_where' => q[~user/.cpan/sources],
'makepl_arg' => q[LIB=/home/user/perllib
INSTALLMAN1DIR=/home/user/man/man1
INSTALLMAN3DIR=/home/user/man/man3
INSTALLBIN=/home/user/bin
INSTALLSCRIPT=/home/user/scripts],
* You are now ready to try installing modules through the usual
CPAN.pm methods. A simple example would be:
perl -MCPAN -e 'install Bundle::Cascade'
For more documentation on installing Perl modules, try these
resources:
perldoc CPAN
perldoc perlmodinstall
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html
-mark
http://mark.stosberg.com
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
v: 765-939-9301 ext 223 website development
. . . . . http://www.summersault.com/ . . . . . . .
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]