Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- cpan shell and MyConfig.pm problem
May 7, 2008, 10:31 am
rate this thread
write permission to the Perl installation directories, I need to do a
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
This works fine for download and test, but install still tries to
write the modules into
the Perl installation directory. In addition, I get during install the
sh: /Perl/cpan-autoconfig: not found
What is broken here?
Re: cpan shell and MyConfig.pm problem
For using the cpan command, configure your CPAN.pm with the right
make_arg arguments that should always be passed to 'make'
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'
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.
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 :)