|
Posted by brian d foy on May 8, 2008, 1:53 pm
Please log in for more thread options
In article
> I would like to install CPAN modules with the cpan command. Since I
> don't have
> write permission to the Perl installation directories, I need to do a
> local installation.
For using the cpan command, configure your CPAN.pm with the right
values in:
make_arg arguments that should always be passed to 'make'
make_install_make_command
the make command for running 'make install', for
example 'sudo make'
make_install_arg same as make_arg for 'make install'
makepl_arg arguments passed to 'perl Makefile.PL'
mbuild_arg arguments passed to './Build'
mbuild_install_arg arguments passed to './Build install'
mbuild_install_build_command
command to use instead of './Build' when we are
in the install stage, for example 'sudo ./Build'
mbuildpl_arg arguments passed to 'perl Build.PL'
For instance, you might set makepl_arg to "PREFIX=~/lib" to install
things in the lib directory inside your home directory.
> After playing around with the cpan command a bit and looking at the
> source code of
> CPAN::Config, I created a $HOME/.cpan/CPAN/MyConfig.pm with the
> following content:
The CPAN::FirstTime module can help you make a configuration file. My
first guess would be that making by hand meant you left out something.
Good luck :)
|