in reply to personal cpan install config
It's not all that comprehensive, but maybe CPAN FAQ entry 5 ("I am not root, how can I install a module in a personal directory?") helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: personal cpan install config
by Dave Howorth (Scribe) on Oct 02, 2008 at 14:47 UTC | |
So something like that, but more comprehensive :) Thanks, Dave | [reply] |
by almut (Canon) on Oct 02, 2008 at 15:56 UTC | |
Hm. So have the "makepl_arg" (or "mbuildpl_arg") options you specified in fact been stored persistently in your personal config file ~/.cpan/CPAN/MyConfig.pm? Do they actually appear in the "perl Makefile.PL ..." (or "perl Build.PL ...") command line that's being issued by CPAN.pm? Are you using LIB=... or PREFIX=..., or which other config setting? Does the installation only fail for perllocal.pod, or is nothing at all being installed? | [reply] [d/l] [select] |
by Dave Howorth (Scribe) on Oct 03, 2008 at 10:39 UTC | |
Hm. So have the "makepl_arg" (or "mbuildpl_arg") options you specified in fact been stored persistently in your personal config file ~/.cpan/CPAN/MyConfig.pm?Yes. I've listed MyConfig.pm below. It's probably not optimal/correct but ... Do they actually appear in the "perl Makefile.PL ..." (or "perl Build.PL ...") command line that's being issued by CPAN.pm?I don't know how to extract that information from cpan? But - your question was enough to solve the problem. Thanks! Oh, you want to know what the problem was? :) Your question prompted me to think about what was happening. First, I tried an install and it failed. Then I read up on CPAN.pm and found FAQ 5 as previously mentioned, so I edited my config. Then I reran the install. Or rather I ran 'force install'. And I did notice, each time I tried the install again that 'make' and 'make test' both said skipping, already done. But I didn't think about the implication. So now I deleted the build directory and reran install and it generated a new Makefile and installed OK! So it seems CPAN doesn't know that the make is invalidated by a config change? Something to remember for the future. Thanks again, Dave MyConfig.pm
| [reply] [d/l] |