Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

CPAN failing to install PAR::Package

by Keiichi (Initiate)
on Jun 17, 2014 at 19:08 UTC ( #1090192=perlquestion: print w/ replies, xml ) Need Help??
Keiichi has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks!

For context: I am working on Windows 7 64bit, using Strawberry Perl 5.18.2.2 64bit.

I'm attempting to get set up to build Perl executables, and I'm running into a problem when using CPAN to install PAR::Package. I have uninstalled Strawberry and deleted all Perl related programs/files, cleared the PERL5LIB environment variable, and reinstalled them in an attempt to fix the issue, to no avail.

When I run 'cpanm PAR::Package', it runs through the whole process of determining and installing dependencies, only to fail right at the end.

As you can see in the console output and cpan build log below, it claims that both dependencies for PAR::Package are installed successfully - only to bail out after failing to install the dependencies. I installed Path::Class to verify that simple installs do work. It fails similarly for installing pp alone.

Do any of you good Monks have insight into what's failing?
Please let me know if you need me to clarify anything or provide any other details.
D:\>cpanm PAR::Packer --> Working on PAR::Packer Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.018. +tar.gz ... OK Configuring PAR-Packer-1.018 ... OK ==> Found dependencies: Module::ScanDeps, Getopt::ArgvFile --> Working on Module::ScanDeps Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1 +.13.tar.gz ... OK Configuring Module-ScanDeps-1.13 ... OK Building and testing Module-ScanDeps-1.13 ... OK Successfully installed Module-ScanDeps-1.13 --> Working on Getopt::ArgvFile Fetching http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile- +1.11.tar.gz ... OK Configuring Getopt-ArgvFile-1.11 ... OK Building and testing Getopt-ArgvFile-1.11 ... OK Successfully installed Getopt-ArgvFile-1.11 ! Installing the dependencies failed: Module 'Getopt::ArgvFile' is not + installed, Module 'Module::ScanDeps' is not installed ! Bailing out the installation for PAR-Packer-1.018. 2 distributions installed D:\>cpanm Path::Class --> Working on Path::Class Fetching http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Path-Class-0.33 +.tar.gz ... OK Configuring Path-Class-0.33 ... OK Building and testing Path-Class-0.33 ... OK Successfully installed Path-Class-0.33 1 distribution installed D:\>cpanm pp --> Working on pp Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.018. +tar.gz ... OK Configuring PAR-Packer-1.018 ... OK ==> Found dependencies: Getopt::ArgvFile, Module::ScanDeps --> Working on Getopt::ArgvFile Fetching http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile- +1.11.tar.gz ... OK Configuring Getopt-ArgvFile-1.11 ... OK Building and testing Getopt-ArgvFile-1.11 ... OK Successfully installed Getopt-ArgvFile-1.11 --> Working on Module::ScanDeps Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1 +.13.tar.gz ... OK Configuring Module-ScanDeps-1.13 ... OK Building and testing Module-ScanDeps-1.13 ... OK Successfully installed Module-ScanDeps-1.13 ! Installing the dependencies failed: Module 'Getopt::ArgvFile' is not + installed, Module 'Module::ScanDeps' is not installed ! Bailing out the installation for PAR-Packer-1.018. 2 distributions installed ###################################################################### BUILD LOG FOR [PAR::Packer]: cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for MSWin32-x64-m +ulti-thread Work directory is C:\Users\U0159691/.cpanm/work/1403027263.6364 You have make D:\strawberry\c\bin\dmake.exe You have LWP 6.05 Falling back to Archive::Tar 1.96 Searching pp on cpanmetadb ... --> Working on pp Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.018. +tar.gz -> OK Unpacking PAR-Packer-1.018.tar.gz Entering PAR-Packer-1.018 Checking configure dependencies from META.yml Checking if you have ExtUtils::Embed 0 ... Yes (1.30) Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.94) Configuring PAR-Packer-1.018 Running Makefile.PL Warning: prerequisite Getopt::ArgvFile 1.07 not found. Warning: prerequisite Module::ScanDeps 1.09 not found. Checking if your kit is complete... Looks good Prototype mismatch: sub main::prompt: none vs ($;$) at D:/strawberry/p +erl/lib/ExtUtils/MakeMaker.pm line 221. Warning: NAME must be a package name Generating a dmake-style Makefile Writing Makefile for par.exe Writing MYMETA.yml and MYMETA.json Generating a dmake-style Makefile Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.94) Checking if you have Archive::Zip 1 ... Yes (1.37) Checking if you have Getopt::ArgvFile 1.07 ... No Checking if you have Win32::Process 0 ... Yes (0.16) Checking if you have Compress::Zlib 1.16 ... Yes (2.064) Checking if you have Module::ScanDeps 1.09 ... No Checking if you have PAR 1.005 ... Yes (1.007) Checking if you have IO::Compress::Gzip 0 ... Yes (2.064) Checking if you have PAR::Dist 0.22 ... Yes (0.49) Checking if you have Win32::Exe 0.17 ... Yes (0.17) Checking if you have Parse::Binary 0.04 ... Yes (0.11) Checking if you have File::Temp 0.05 ... Yes (0.2304) Checking if you have ExtUtils::Embed 0 ... Yes (1.30) ==> Found dependencies: Getopt::ArgvFile, Module::ScanDeps Searching Getopt::ArgvFile on cpanmetadb ... --> Working on Getopt::ArgvFile Fetching http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile- +1.11.tar.gz -> OK Unpacking Getopt-ArgvFile-1.11.tar.gz Entering Getopt-ArgvFile-1.11 Checking configure dependencies from META.yml Configuring Getopt-ArgvFile-1.11 Running Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Getopt::ArgvFile Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::Harness 1.25 ... Yes (3.28) Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.94) Checking if you have Text::ParseWords 3.1 ... Yes (3.29) Checking if you have Test::More 0.11 ... Yes (1.001003) Building and testing Getopt-ArgvFile-1.11 cp ArgvFile.pm blib\lib\Getopt\ArgvFile.pm D:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib +', 'blib\arch')" t/*.t t/base.t ........... ok t/expandenv.t ...... ok t/fileopt.t ........ ok t/noHOMEvar.t ...... ok t/pod-coverage.t ... skipped: Test::Pod::Coverage 1.00 required for te +sting POD coverage t/pod.t ............ skipped: Test::Pod 1.00 required for testing POD t/prefix.t ......... ok t/resolvepathes.t .. ok t/use1.t ........... ok t/use2.t ........... ok All tests successful. Files=10, Tests=43, 1 wallclock secs ( 0.08 usr + 0.01 sys = 0.09 C +PU) Result: PASS Installing C:UsersU0159691perl5\lib\perl5\Getopt\ArgvFile.pm Appending installation info to C:UsersU0159691perl5\lib\perl5\MSWin32- +x64-multi-thread/perllocal.pod -> OK Successfully installed Getopt-ArgvFile-1.11 Installing C:\Users\U0159691\perl5\lib\perl5\MSWin32-x64-multi-thread\ +.meta\Getopt-ArgvFile-1.11\install.json Searching Module::ScanDeps on cpanmetadb ... --> Working on Module::ScanDeps Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1 +.13.tar.gz -> OK Unpacking Module-ScanDeps-1.13.tar.gz Entering Module-ScanDeps-1.13 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.94) Configuring Module-ScanDeps-1.13 Running Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Module::ScanDeps Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.94) Checking if you have version 0 ... Yes (0.9908) Checking if you have File::Spec 0 ... Yes (3.40) Checking if you have Module::Build::ModuleInfo 0 ... Yes (0.4205) Checking if you have Test::More 0 ... Yes (1.001003) Checking if you have File::Temp 0 ... Yes (0.2304) Checking if you have Test::Requires 0 ... Yes (0.07) Building and testing Module-ScanDeps-1.13 cp lib/Module/ScanDeps.pm blib\lib\Module\ScanDeps.pm cp lib/Module/ScanDeps/DataFeed.pm blib\lib\Module\ScanDeps\DataFeed.p +m cp lib/Module/ScanDeps/Cache.pm blib\lib\Module\ScanDeps\Cache.pm D:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp -- s +cript/scandeps.pl blib\script\scandeps.pl pl2bat.bat blib\script\scandeps.pl D:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'b +lib\lib', 'blib\arch')" t/*.t t/0-pod.t ....................................... skipped: Test requir +es module 'Test::Pod' but it's not found t/1-static_functional_interface_real.t .......... ok t/10-case-insensitive-keys.t .................... ok t/12-ScanFileRE.t ............................... ok t/13-static_prefork_test.t ...................... skipped: Test requir +es module 'prefork' but it's not found t/14-scan_chunk.t ............................... ok 0 Couldn't retrieve data from file deps_cache.dat. Building new cache. t/14-static_functional_cached.t ................. ok t/16-scan_line.t ................................ ok t/17-private_methods.t .......................... ok t/2-static_functional_interface_fake.t .......... ok t/3-static_oo_interface_real.t .................. ok t/4-static_functional_interface_options_fake.t .. ok t/5-pluggable_fake.t ............................ ok t/6-file-glob.t ................................. ok # dynamic modules used for test: Cwd File::Glob Data::Dumper List::Uti +l Time::HiRes Compress::Raw::Zlib C:\Users\U0159691\AppData\Local\Temp\uwyURPVNJz syntax OK C:\Users\U0159691\AppData\Local\Temp\ATNh5JjezZ syntax OK C:\Users\U0159691\AppData\Local\Temp\rXqbhR4NUn syntax OK C:\Users\U0159691\AppData\Local\Temp\Rq1Cl3YqSx syntax OK C:\Users\U0159691\AppData\Local\Temp\L64kkPGD3z syntax OK C:\Users\U0159691\AppData\Local\Temp\uV67Rb5nx4 syntax OK t/7-check-dynaloader.t .......................... ok t/8-check_duplicated_entries.t .................. ok t/9-check_path_to_inc_name.t .................... ok t/rt90869.t ..................................... ok All tests successful. Files=18, Tests=16709, 20 wallclock secs ( 0.98 usr + 0.05 sys = 1.0 +3 CPU) Result: PASS Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps.pm Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps\Cache.pm Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps\DataFeed.pm Installing C:UsersU0159691perl5\bin\scandeps.bat Installing C:UsersU0159691perl5\bin\scandeps.pl Appending installation info to C:UsersU0159691perl5\lib\perl5\MSWin32- +x64-multi-thread/perllocal.pod -> OK Successfully installed Module-ScanDeps-1.13 Installing C:\Users\U0159691\perl5\lib\perl5\MSWin32-x64-multi-thread\ +.meta\Module-ScanDeps-1.13\install.json -> FAIL Installing the dependencies failed: Module 'Getopt::ArgvFile' +is not installed, Module 'Module::ScanDeps' is not installed -> FAIL Bailing out the installation for PAR-Packer-1.018. 2 distributions installed

Comment on CPAN failing to install PAR::Package
Download Code
Re: CPAN failing to install PAR::Package
by Anonymous Monk on Jun 17, 2014 at 19:13 UTC

    What's going on here?

    Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps.pm Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps\Cache.pm Installing C:UsersU0159691perl5\lib\perl5\Module\ScanDeps\DataFeed.pm Installing C:UsersU0159691perl5\bin\scandeps.bat Installing C:UsersU0159691perl5\bin\scandeps.pl

    Is the output / post just mangled, or is it really trying to install to those bad pathnames? Can you check if those files exist?

    Also, what does perl -MModule::ScanDeps or perl -MGetopt::ArgvFile say?

      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?

        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?

Re: CPAN failing to install PAR::Package
by sam_bakki (Monk) on Jun 18, 2014 at 09:30 UTC

    Hi

    May be you can try http://www.activestate.com/perl-dev-kit , I am using in my company for perl to windows exes. I am happy customer.



    Thanks & Regards,
    Bakkiaraj M
    My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

      The 5.18 compatible PDK came out a whole month before p5p released 5.20 . My love of ActiveState is waning.

      TJD

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1090192]
Front-paged by GotToBTru
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-08-23 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls