in reply to Using CPAN to install modules in $HOME?
Yes, you can do this by creating a file named $HOME/.cpan/CPAN/MyConfig.pm In that file, you can specify custom arguments to be added any time that a Makefille.PL is run. By specifying a LIB= or PREFIX= argument, you can make the CPAN module install the lib any place you want. It would look something like this:
$CPAN::Config->{makepl_arg} = q[ PREFIX=DIRECTORY_NAME ];
Or, if you are working with the interactive shell, you can just skip the config file, and do this from the shell:
o conf makepl_arg PREFIX=DIRECTORY_NAME(where DIRECTORY_NAME is the name of the directory you wish to install to).
Good luck!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using CPAN to install modules in $HOME?
by bnanaboy (Beadle) on Oct 31, 2002 at 14:16 UTC | |
by ehdonhon (Curate) on Oct 31, 2002 at 23:39 UTC |