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

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"

Replies are listed 'Best First'.
Re^6: CPAN failing to install PAR::Package
by Keiichi (Initiate) on Jun 17, 2014 at 21:04 UTC
    Here you go... Thanks again for your time and effort in helping me with this :).

      Looks like we found the problem:

      'PERL_MM_OPT' => 'INSTALL_BASE=C:\\Users\\U0159691\\perl5',
      1. right-click "My Computer" and select "Properties"
      2. find the "Advanced" system settings (tab along the top or option at the left)
      3. click "Environment Variables"
      4. find the PERL_MM_OPT variable and delete it
      5. reboot since hey it's Windows
      6. try the installation via cpan or cpanm again

      If you can't find it, it's likely being set in some custom config / startup file somewhere, which might be a little harder to track down unless you know where it is.

      As a side note, you could remove C:\Users\U0159691\perl5\bin from your PATH while you're at it.

        Fantastic! It worked.

        Thanks again for your help.