http://www.perlmonks.org?node_id=1090197


in reply to Re^2: CPAN failing to install PAR::Package
in thread CPAN failing to install PAR::Package

Do you have two Perls installed on your machine? Since the output says @INC is D:/strawberry/perl/site/lib D:/strawberry/perl/vendor/lib D:/strawberry/perl/lib, while cpanm is attempting to install to C:\Users\U0159691\perl5\. Which Perl installation are you actually using? Try uninstalling the other. Have you tried using regular cpan instead of cpanm?

Replies are listed 'Best First'.
Re^4: CPAN failing to install PAR::Package
by Keiichi (Initiate) on Jun 17, 2014 at 20:22 UTC
    Not long ago I updated Strawberry from 5.14 to 5.18; I uninstalled the old version first, but it's possible some things got left behind.

    As far as I can tell, I only have one version of Perl installed. I removed the perl5 folder before reinstalling 5.18, just prior to positing my question. Control Panel lists only one. I can only infer that the perl5 folder was installed along with Strawberry. Do you know if there is an insurgent program available to completely clean all Perl versions from a machine?

    Running cpan rather than cpanm results in a large number of failed tests
    Thank you for the suggestions, though.

      Something somewhere is still referring to C:UsersU0159691perl5. Config file, environment variable, something. The output of perl -V would help in further diagnosing, as well as perl -MData::Dumper -e "print Dumper \%ENV"

        Here you go... Thanks again for your time and effort in helping me with this :).