Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

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


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

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

D:\>cpan PAR::Packer CPAN: CPAN::SQLite loaded ok (v0.203) Database was generated on Tue, 17 Jun 2014 17:42:53 GMT Running install for module 'PAR::Packer' Running make for R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz CPAN: Digest::SHA loaded ok (v5.88) CPAN: Compress::Zlib loaded ok (v2.064) Checksum for D:\strawberry\cpan\sources\authors\id\R\RS\RSCHUPP\PAR-Pa +cker-1.018.tar.gz ok CPAN: Archive::Tar loaded ok (v1.96) CPAN: File::Temp loaded ok (v0.2304) CPAN: Parse::CPAN::Meta loaded ok (v1.4414) CPAN: CPAN::Meta loaded ok (v2.140640) CPAN: Module::CoreList loaded ok (v3.09) CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Getopt::ArgvFile 1.07 not found. Warning: prerequisite Module::ScanDeps 1.09 not found. 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 ---- Unsatisfied dependencies detected during ---- ---- RSCHUPP/PAR-Packer-1.018.tar.gz ---- Getopt::ArgvFile [requires] Module::ScanDeps [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Getopt::ArgvFile' Running make for J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz Checksum for D:\strawberry\cpan\sources\authors\id\J\JS\JSTENZEL\Getop +t-ArgvFile-1.11.tar.gz ok CPAN.pm: Building J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Getopt::ArgvFile Writing MYMETA.yml and MYMETA.json cp ArgvFile.pm blib\lib\Getopt\ArgvFile.pm JSTENZEL/Getopt-ArgvFile-1.11.tar.gz D:\strawberry\c\bin\dmake.exe -- OK CPAN: YAML::XS loaded ok (v0.41) Running make test D:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib +', 'blib\ar ch')" 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.03 sys = 0.11 C +PU) Result: PASS JSTENZEL/Getopt-ArgvFile-1.11.tar.gz D:\strawberry\c\bin\dmake.exe test -- OK Running make install Appending installation info to C:UsersU0159691perl5\lib\perl5\MSWin32- +x64-multi-thread/perllocal.pod JSTENZEL/Getopt-ArgvFile-1.11.tar.gz D:\strawberry\c\bin\dmake.exe install UNINST=1 -- OK Running install for module 'Module::ScanDeps' Running make for R/RS/RSCHUPP/Module-ScanDeps-1.13.tar.gz Checksum for D:\strawberry\cpan\sources\authors\id\R\RS\RSCHUPP\Module +-ScanDeps-1.13.tar.gz ok CPAN.pm: Building R/RS/RSCHUPP/Module-ScanDeps-1.13.tar.gz Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Module::ScanDeps Writing MYMETA.yml and MYMETA.json 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 RSCHUPP/Module-ScanDeps-1.13.tar.gz D:\strawberry\c\bin\dmake.exe -- OK Running make test 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 t/14-static_functional_cached.t ................. 1/? 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 t/7-check-dynaloader.t .......................... # dynamic modules us +ed for test: Cwd File::Glob Data::Dumper List::Util Time::HiRes Compr +ess::Raw::Z lib t/7-check-dynaloader.t .......................... 1/36 C:\Users\U01596 +91\AppData\Local\Temp\7o2d3XwRcD syntax OK C:\Users\U0159691\AppData\Local\Temp\x5nul6MY6E syntax OK C:\Users\U0159691\AppData\Local\Temp\oW5_mZtdPy syntax OK C:\Users\U0159691\AppData\Local\Temp\3ZliD9zbpl syntax OK t/7-check-dynaloader.t .......................... 21/36 C:\Users\U0159 +691\AppData\Local\Temp\dFhodiAsVz syntax OK C:\Users\U0159691\AppData\Local\Temp\W4AeB5592l 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.03 sys = 1.0 +1 CPU) Result: PASS RSCHUPP/Module-ScanDeps-1.13.tar.gz D:\strawberry\c\bin\dmake.exe test -- OK Running make install Appending installation info to C:UsersU0159691perl5\lib\perl5\MSWin32- +x64-multi-thread/perllocal.pod RSCHUPP/Module-ScanDeps-1.13.tar.gz D:\strawberry\c\bin\dmake.exe install UNINST=1 -- OK Running make for R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz Has already been unwrapped into directory D:\strawberry\cpan\build\P +AR-Packer-1.018-YDbtmA CPAN.pm: Building R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm cp lib/pp.pm blib\lib\pp.pm cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm D:\strawberry\perl\bin\perl.exe par_pl2c.pl my_par_pl < ..\script\par. +pl > my_par_pl.c D:\strawberry\perl\bin\perl.exe sha1.c.PL gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS +-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict- +aliasing -m ms-bitfields -I"D:\strawberry\perl\lib\CORE" -DPARL_EXE=\"parl.exe\" + -s -O2 main.c main.c: In function 'main': main.c:121:23: warning: assignment discards 'const' qualifier from poi +nter target type [enabled by default] windres -i winres/pp.rc -o ppresource.coff --input-format=rc --output- +format=coff --target=pe-x86-64 g++ main.o ppresource.coff -s -s -L"D:\strawberry\perl\lib\CORE" -L" +D:\strawberry\c\lib" D:\strawberry\perl\lib\CORE\libperl518.a D:\str +awberry\c\x 86_64-w64-mingw32\lib\libmoldname.a D:\strawberry\c\x86_64-w64-mingw32 +\lib\libkernel32.a D:\strawberry\c\x86_64-w64-mingw32\lib\libuser32.a + D:\strawbe rry\c\x86_64-w64-mingw32\lib\libgdi32.a D:\strawberry\c\x86_64-w64-min +gw32\lib\libwinspool.a D:\strawberry\c\x86_64-w64-mingw32\lib\libcomd +lg32.a D:\s trawberry\c\x86_64-w64-mingw32\lib\libadvapi32.a D:\strawberry\c\x86_6 +4-w64-mingw32\lib\libshell32.a D:\strawberry\c\x86_64-w64-mingw32\lib +\libole32.a D:\strawberry\c\x86_64-w64-mingw32\lib\liboleaut32.a D:\strawberry\c\ +x86_64-w64-mingw32\lib\libnetapi32.a D:\strawberry\c\x86_64-w64-mingw +32\lib\libu uid.a D:\strawberry\c\x86_64-w64-mingw32\lib\libws2_32.a D:\strawberry +\c\x86_64-w64-mingw32\lib\libmpr.a D:\strawberry\c\x86_64-w64-mingw32 +\lib\libwin mm.a D:\strawberry\c\x86_64-w64-mingw32\lib\libversion.a D:\strawberry +\c\x86_64-w64-mingw32\lib\libodbc32.a D:\strawberry\c\x86_64-w64-ming +w32\lib\lib odbccp32.a D:\strawberry\c\x86_64-w64-mingw32\lib\libcomctl32.a -o par +.exe rem D:\strawberry\perl\bin\perl.exe encode_append.pl Dynamic.in par.exe Dy +namic.pm D:\strawberry\perl\bin\perl.exe file2c.pl -c 30000 par.exe D:\strawber +ry\perl\bin\perl518.dll D:\strawberry\perl\bin\libgcc_s_sjlj-1.dll D: +\strawberry \perl\bin\libstdc++-6.dll > boot_embedded_files.c gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS +-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict- +aliasing -m ms-bitfields -I"D:\strawberry\perl\lib\CORE" -DPARL_EXE=\"parl.exe\" + -s -O2 boot.c In file included from mktmpdir.h:85:0, from mktmpdir.c:1, from boot.c:10: sha1.c: In function 'sha_transform': sha1.c:146:2: warning: right shift count >= width of type [enabled by +default] boot.c: In function 'main': boot.c:220:5: warning: passing argument 3 of 'spawnvpe' from incompati +ble pointer type [enabled by default] In file included from d:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw3 +2/4.7.3/../../../../x86_64-w64-mingw32/include/unistd.h:11:0, from boot.c:7: d:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x8 +6_64-w64-mingw32/include/process.h:178:20: note: expected 'char * con +st*' but ar gument is of type 'const char * const*' boot.c:220:5: warning: passing argument 4 of 'spawnvpe' from incompati +ble pointer type [enabled by default] In file included from d:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw3 +2/4.7.3/../../../../x86_64-w64-mingw32/include/unistd.h:11:0, from boot.c:7: d:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x8 +6_64-w64-mingw32/include/process.h:178:20: note: expected 'char * con +st*' but ar gument is of type 'const char * const*' g++ boot.o -static-libgcc -s -s -L"D:\strawberry\perl\lib\CORE" -L"D +:\strawberry\c\lib" D:\strawberry\perl\lib\CORE\libperl518.a D:\stra +wberry\c\x8 6_64-w64-mingw32\lib\libmoldname.a D:\strawberry\c\x86_64-w64-mingw32\ +lib\libkernel32.a D:\strawberry\c\x86_64-w64-mingw32\lib\libuser32.a +D:\strawber ry\c\x86_64-w64-mingw32\lib\libgdi32.a D:\strawberry\c\x86_64-w64-ming +w32\lib\libwinspool.a D:\strawberry\c\x86_64-w64-mingw32\lib\libcomdl +g32.a D:\st rawberry\c\x86_64-w64-mingw32\lib\libadvapi32.a D:\strawberry\c\x86_64 +-w64-mingw32\lib\libshell32.a D:\strawberry\c\x86_64-w64-mingw32\lib\ +libole32.a D:\strawberry\c\x86_64-w64-mingw32\lib\liboleaut32.a D:\strawberry\c\x +86_64-w64-mingw32\lib\libnetapi32.a D:\strawberry\c\x86_64-w64-mingw3 +2\lib\libuu id.a D:\strawberry\c\x86_64-w64-mingw32\lib\libws2_32.a D:\strawberry\ +c\x86_64-w64-mingw32\lib\libmpr.a D:\strawberry\c\x86_64-w64-mingw32\ +lib\libwinm m.a D:\strawberry\c\x86_64-w64-mingw32\lib\libversion.a D:\strawberry\ +c\x86_64-w64-mingw32\lib\libodbc32.a D:\strawberry\c\x86_64-w64-mingw +32\lib\libo dbccp32.a D:\strawberry\c\x86_64-w64-mingw32\lib\libcomctl32.a ppreso +urce.coff -o boot.exe rem D:\strawberry\perl\bin\perl.exe encode_append.pl Static.in boot.exe St +atic.pm cp Static.pm ..\blib\lib\PAR\StrippedPARL\Static.pm cp Dynamic.pm ..\blib\lib\PAR\StrippedPARL\Dynamic.pm D:\strawberry\perl\bin\perl.exe -Mblib=.. run_with_inc.pl boot.exe -q +-B -Oparl.exe D:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- parl.exe +..\blib\script\parl.exe rem ..\blib\script\parl.exe D:\strawberry\perl\bin\perl.exe -Mblib=.. run_with_inc.pl par.exe -q - +B -Oparldyn.exe D:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- parldyn.e +xe ..\blib\script\parldyn.exe rem ..\blib\script\parldyn.exe D:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp -- s +cript/tkpp blib\script\tkpp pl2bat.bat blib\script\tkpp D:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp -- s +cript/pp blib\script\pp pl2bat.bat blib\script\pp D:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp -- s +cript/par.pl blib\script\par.pl pl2bat.bat blib\script\par.pl RSCHUPP/PAR-Packer-1.018.tar.gz D:\strawberry\c\bin\dmake.exe -- OK Running make test 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/00-pod.t t/10-parl-generation.t t/20-pp.t t/30-current_ +exec.t t/40-packer_cd_option.t t/90-rt59710.t t/00-pod.t ............... skipped: Set environment variable PERL_TEST +_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t ................ Can't locate Module/ScanDeps.pm in @INC (yo +u may need to install the Module::ScanDeps module) (@INC contains: D: +\strawberry \cpan\build\PAR-Packer-1.018-YDbtmA\blib\lib D:\strawberry\cpan\build\ +PAR-Packer-1.018-YDbtmA\contrib\automated_pp_test D:\strawberry\cpan\ +build\PAR-P acker-1.018-YDbtmA\inc D:\strawberry\cpan\build\PAR-Packer-1.018-YDbtm +A\blib\lib D:\strawberry\cpan\build\PAR-Packer-1.018-YDbtmA\blib\arch + D:/strawbe rry/perl/site/lib D:/strawberry/perl/vendor/lib D:/strawberry/perl/lib + .) at D:\strawberry\cpan\build\PAR-Packer-1.018-YDbtmA\blib\lib/PAR/ +Packer.pm l ine 34. BEGIN failed--compilation aborted at D:\strawberry\cpan\build\PAR-Pack +er-1.018-YDbtmA\blib\lib/PAR/Packer.pm line 34. Compilation failed in require at D:\strawberry\cpan\build\PAR-Packer-1 +.018-YDbtmA\blib\lib/pp.pm line 5. BEGIN failed--compilation aborted at D:\strawberry\cpan\build\PAR-Pack +er-1.018-YDbtmA\blib\lib/pp.pm line 5. Compilation failed in require at D:\strawberry\cpan\build\PAR-Packer-1 +.018-YDbtmA\blib\script/pp line 5. BEGIN failed--compilation aborted at D:\strawberry\cpan\build\PAR-Pack +er-1.018-YDbtmA\blib\script/pp line 5. ...... Test Summary Report ------------------- t/20-pp.t (Wstat: 8448 Tests: 34 Failed: 33) Failed tests: 1-30, 32-34 Non-zero exit status: 33 t/30-current_exec.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 1. t/40-packer_cd_option.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 2 tests but ran 0. t/90-rt59710.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 1. Files=6, Tests=67, 12 wallclock secs ( 0.09 usr + 0.02 sys = 0.11 CP +U) Result: FAIL Failed 4/6 test programs. 35/67 subtests failed. dmake.exe: Error code 130, while making 'test_dynamic' RSCHUPP/PAR-Packer-1.018.tar.gz 2 dependencies missing (Getopt::ArgvFile,Module::ScanDeps); additional +ly test harness failed D:\strawberry\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports RSCHUPP/PAR-Packer-1.018.tar.gz Running make install make test had returned bad status, won't install without force Stopping: 'install' failed for 'R/RS/RSCHUPP/PAR-Packer-1.018.tar.gz'.

Thank you for the suggestions, though.


Comment on Re^4: CPAN failing to install PAR::Package
Download Code
Re^5: CPAN failing to install PAR::Package
by Anonymous Monk on Jun 17, 2014 at 20:52 UTC

    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 :).

        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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-10-02 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls