Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: CPAN failing to install PAR::Package

by Keiichi (Initiate)
on Jun 17, 2014 at 19:24 UTC ( #1090194=note: print w/ replies, xml ) Need Help??


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

Interesting... It is apparently installing them somewhere it can't find... Here's the output from your suggested commands:

D:\>perl -MModule::ScanDeps Can't locate Module/ScanDeps.pm in @INC (you may need to install the M +odule::ScanDeps module) (@INC contains: D:/strawberry/perl/site/lib D +:/strawberr y/perl/vendor/lib D:/strawberry/perl/lib .). BEGIN failed--compilation aborted. D:\>perl -MModule::ScanDeps Can't locate Module/ScanDeps.pm in @INC (you may need to install the M +odule::ScanDeps module) (@INC contains: D:/strawberry/perl/site/lib D +:/strawberr y/perl/vendor/lib D:/strawberry/perl/lib .). BEGIN failed--compilation aborted.
I can see folders for Getopt-ArgvFile-1.11 and Module-ScanDeps-1.13, along with Path-Class-0.33, at C:\Users\U0159691\perl5\lib\perl5\MSWin32-x64-multi-thread\.meta. The post is copied directly from the build log. I don't see any directories called UsersU0159691perl5 on my C: drive.

Does Strawberry or CPAN keep local install locations in a file I can access, to check if the paths are correct?


Comment on Re^2: CPAN failing to install PAR::Package
Download Code
Replies are listed 'Best First'.
Re^3: CPAN failing to install PAR::Package
by Anonymous Monk on Jun 17, 2014 at 19:56 UTC

    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?

      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"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (18)
As of 2015-07-30 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls