in reply to Re: When cpan returns the dreaded "won't install without force"
in thread When cpan returns the dreaded "won't install without force"
Having rather large Perl installations on both Win and Debian, I have a little experience with install errors (as well as perhaps more questions than answers).
For the evil spawn of Redmond, may I humbly suggest that the OP use the ActiveState version of Perl *first*, as that is precompiled for Win and the ppm's in general do not produce error messages, except for incompetent errors like two nodules putting READMEs into the same directory.
Some modules simply do not *compile* well under Win, and I have had enough problems with Strawberry to stop using it.
M'lady's orignial distress "wont install without force" is often enough in truth a statement that due to a missing dependency, it wont install *even with force* : It wont install at all.
For a CPAN module probably the best place to look may not be the logs or scrollback, which I have often found confusing, but rather the META.YML files in the/Build directories, which normally state dependencies, as well as the home pages of the modules often with more info than CPAN.
For ActiveState the basic info is in the PPM .tgz files, which must be snatched from the $TEMP directory before they are deleted - if they cannot install normally. The info is in a .PPD file. One can use a simple file manager like FAR or TOTAL COMMANDER to simply copy the internal files to the appropriate SITE/lib and binary directories (usually /bin or /SITE/bin
For Win users I would also recommend installing CYGWIN, as it should have all the binaries that CPAN typically looks for, was well as the MingW compiler needed for some modules - even some of ActiveStates. (Else Visual C)
As Cygwin has its own, and usually outdated Perl, I would rename the binary, and possibly the directories within it. And add its path into the Win environment. It may even be possible to totally update the Cygwin Perl using CPAN. It would certainly be more methodically pure than using tethered software such as ActiveState. (I pray RMS will forgive my sins...).
Also, some dependencies are not on CPAN and the module authors automatically assume that they are already installed. Some are even proprietary - Mathematica and RT come to mind.
|Replies are listed 'Best First'.|
Re^3: When cpan returns the dreaded "won't install without force"
by marto (Bishop) on Mar 29, 2013 at 10:15 UTC
by kel (Novice) on Mar 29, 2013 at 17:26 UTC