Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

SOS: Ability to GET got BOMed (resolved)

by palkia (Monk)
on Aug 29, 2017 at 17:46 UTC ( [id://1198286]=perlquestion: print w/replies, xml ) Need Help??

palkia has asked for the wisdom of the Perl Monks concerning the following question:

Problem resolved !
I apologize to everyone who attempted to assist me with this strange problem, for not figuring it sooner (this is the 1st time I encounter this limit (I'll explain).

Timeline:
As always I allowed my long process apps to run overnight, and in this particular case, download a mass of files to 1 directory.
In the next day I attempted to install File::BOM and failed, and after running the same (completely unchanged) app overnight again, I noticed in the day after it downloaded nothing, and confirmed it is no longer able to download anything (no warning/error messages).

Setup:
Later, apparently when I ran the same app in a different directory, it worked normally, making me think something is wrong with the directory or file system or maybe even some super-localized hardware problem in my hard drive (a stretch but I felt pretty open minded at this point).
So I attempted and as expected failed to create a new file in that directory (using Os methods, nothing to do with perl), so I guessed and confirmed I can create exactly 3 files there after moving exactly 3 files away.
Yep you get it.

Punchline: (this is one for the books)
Apparently I have reached (for the 1st time in my life) the maximum number of files allowed in one directory (about 65529 if I'm not mistaken) this is obviously the classic 65535 (FFFF hex) with some padding.

Random Coincidence:
Basically this entire misunderstanding happened only because (completely coincidentally) I've attempted to install a module exactly 1 day after (for the 1st time ever) reaching the maximum allowed number of files in a directory, using a perl app.............

In Conclusion:
Yes that's really all there's to it.
Sorry again for not realizing this sooner, and thank you all so much for trying to help me.

About CPAN
The issue of not being able to get new cpan modules may still stand, but after this scare, I think I'll take some time before "rocking the boat" again ^^.
Thx again and I promise I'll try harder to not waist anyone's time in the future ☺

------------------------------------------

Hello.
I'm a perl novas and have recently inquired as to a way to convert utf8 encoded *.txt files, and was recommended to try File::BOM, but after an installation (attempt), not only the module didn't work, but also the module WWW::Mechanize, which I had no problems with until now.
(I'm using strawberry on Win-xp sp2 in case that matters)

To make things clearer: (unlike with File::BOM) I have no error/die report when
use WWW::Mechanize;
nor when
my $mech = WWW::Mechanize->new( autocheck => 1 ); eval{$mech->get($url, ':content_file' => $downName);}; if($@){print "Error: $@"; <>;}
accept that now these code lines no longer produce downloaded files.
Based on the timing, I figured installing File::BOM somehow damaged the files of WWW::Mechanize, so I tried to reinstall WWW::Mechanize but the problem remained the same.

I use multiple perl apps of my own making, that uses this form of file downloading option on a regular basis, both in my personal and professional life, in other words, if I can't fix this soon nor find some reliable alternative way to download files automatically, I might actually lose my job.
I'm going to try using an old computer where this problem doesn't exist (nor most of my files and apps) but this is a temporary solution at best.
Please please help.

Here are the terminal lines (way beyond my understanding) of the installs of both modules:

File::BOM install (attempt):
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrator>cpan File::BOM CPAN: LWP::UserAgent loaded ok (v5.835) CPAN: Time::HiRes loaded ok (v1.9719) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.71) CPAN: CPAN::SQLite loaded ok (v0.199) Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Sun, 12 Feb 2012 01:23:51 GMT Updating database file ... Gathering information from index files ... Obtaining current state of database ... Populating database tables ... Done! Running install for module 'File::BOM' Running make for M/MA/MATTLAW/File-BOM-0.15.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/M/MA/MATTLAW/File-BOM-0.15.t +ar.gz CPAN: Digest::SHA loaded ok (v5.48) Fetching with LWP: http://cpan.strawberryperl.com/authors/id/M/MA/MATTLAW/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.024) Checksum for C:\strawberry\cpan\sources\authors\id\M\MA\MATTLAW\File-B +OM-0.15.ta r.gz ok CPAN: Archive::Tar loaded ok (v1.54) CPAN: File::Temp loaded ok (v0.22) CPAN: Module::CoreList loaded ok (v2.25) ---- Unsatisfied dependencies detected during ---- ---- MATTLAW/File-BOM-0.15.tar.gz ---- Module::Build [build_requires] Running make test Make had some problems, won't test Delayed until after prerequisites Running make install Make had some problems, won't install Delayed until after prerequisites Running install for module 'Module::Build' Running make for L/LE/LEONT/Module-Build-0.4224.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/L/LE/LEONT/Module-Build-0.42 +24.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/L/LE/LEONT/CHECKSUMS Checksum for C:\strawberry\cpan\sources\authors\id\L\LE\LEONT\Module-B +uild-0.422 4.tar.gz ok Couldn't move C:\strawberry\cpan\build\tmp-2064\Module-Build-0.4224\t +to C:\stra wberry\cpan\build\Module-Build-0.4224-5jzHls\t: No such file or direct +ory at C:\ strawberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x2 df25b4)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x2df25b4)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x2df25b4)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x2df25b4)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x2df25b4 +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x2df2504)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x2df2504)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'File::BOM') c +alled at C :\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'File::BOM') called at C: +/strawberr y/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('File::BOM') called at C:/strawberry/perl/ +lib/App/Cp an.pm line 468 App::Cpan::_default('ARRAY(0xbec2b4)', 'HASH(0x166601c)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'File::BOM') called at C:\strawber +ry\perl\bi n/cpan line 8 C:\Documents and Settings\Administrator>cpan File::BOM CPAN: CPAN::SQLite loaded ok (v0.199) Database was generated on Sun, 27 Aug 2017 21:44:37 GMT Running install for module 'File::BOM' CPAN: YAML loaded ok (v0.71) Running make for M/MA/MATTLAW/File-BOM-0.15.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.024) Checksum for C:\strawberry\cpan\sources\authors\id\M\MA\MATTLAW\File-B +OM-0.15.ta r.gz ok CPAN: Archive::Tar loaded ok (v1.54) CPAN: File::Temp loaded ok (v0.22) CPAN: Module::CoreList loaded ok (v2.25) ---- Unsatisfied dependencies detected during ---- ---- MATTLAW/File-BOM-0.15.tar.gz ---- Module::Build [build_requires] Running make test Make had some problems, won't test Delayed until after prerequisites Running make install Make had some problems, won't install Delayed until after prerequisites Running install for module 'Module::Build' Running make for L/LE/LEONT/Module-Build-0.4224.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\L\LE\LEONT\Module-B +uild-0.422 4.tar.gz ok Couldn't move C:\strawberry\cpan\build\tmp-3004\Module-Build-0.4224\t +to C:\stra wberry\cpan\build\Module-Build-0.4224-7kNRxr\t: No such file or direct +ory at C:\ strawberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x2 a14fd4)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x2a14fd4)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x2a14fd4)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x2a14fd4)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x2a14fd4 +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x2a15134)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x2a15134)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'File::BOM') c +alled at C :\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'File::BOM') called at C: +/strawberr y/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('File::BOM') called at C:/strawberry/perl/ +lib/App/Cp an.pm line 468 App::Cpan::_default('ARRAY(0xbec294)', 'HASH(0x166635c)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'File::BOM') called at C:\strawber +ry\perl\bi n/cpan line 8 C:\Documents and Settings\Administrator>

The last 300 lines (that the terminal kept) of the WWW::Mechanize 1st reinstallation attempt (since the BOM)
Checking if your kit is complete... Looks good Writing Makefile for HTML::Parser cp lib/HTML/PullParser.pm blib\lib\HTML\PullParser.pm cp Parser.pm blib\lib\HTML\Parser.pm cp lib/HTML/Entities.pm blib\lib\HTML\Entities.pm cp lib/HTML/LinkExtor.pm blib\lib\HTML\LinkExtor.pm cp lib/HTML/TokeParser.pm blib\lib\HTML\TokeParser.pm cp lib/HTML/Filter.pm blib\lib\HTML\Filter.pm cp lib/HTML/HeadParser.pm blib\lib\HTML\HeadParser.pm C:\strawberry\perl\bin\perl.exe mkhctype >hctype.h C:\strawberry\perl\bin\perl.exe mkpfunc >pfunc.h C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Parser.xs > + Parser.xs c && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Pa +rser.xsc P arser.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_RE +ADFIX -s - O2 -DVERSION=\"3.72\" -DXS_VERSION=\"3.72\" "-IC:\strawberr +y\perl\lib \CORE" -DMARKED_SECTION Parser.c Running Mkbootstrap for HTML::Parser () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 +Parser.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"HTML::Parser\", 'DLBASE' => 'Parser', 'D +L_FUNCS' = > { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def Parser.def --output-exp dll.exp g++ -o blib\arch\auto\HTML\Parser\Parser.dll -Wl,--base-file -Wl,dll.b +ase -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Parser.o -W +l,--image- base,0x35130000 C:\strawberry\perl\lib\CORE\libperl510.a -lmoldname - +lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -l +oleaut32 - lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 +dll.exp dlltool --def Parser.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\HTML\Parser\Parser.dll -mdll -s -L"C:\strawberry +\perl\lib\ CORE" -L"C:\strawberry\c\lib" Parser.o -Wl,--image-base,0x35130000 C: +\strawberr y\perl\lib\CORE\libperl510.a -lmoldname -lkernel32 -luser32 -lgdi32 -l +winspool - lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -l +ws2_32 -lm pr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 +blib\arch\ auto\HTML\Parser\Parser.dll C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- Parser. +bs blib\ar ch\auto\HTML\Parser\Parser.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 +blib\arch\ auto\HTML\Parser\Parser.bs GAAS/HTML-Parser-3.72.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/api_version.t ...... ok t/argspec-bad.t ...... ok t/argspec.t .......... ok t/argspec2.t ......... ok t/attr-encoded.t ..... ok t/callback.t ......... ok t/case-sensitive.t ... ok t/cases.t ............ ok t/comment.t .......... ok t/crashme.t .......... ok t/declaration.t ...... ok t/default.t .......... ok t/document.t ......... ok t/dtext.t ............ ok t/entities.t ......... ok t/entities2.t ........ ok t/filter-methods.t ... ok t/filter.t ........... ok t/handler-eof.t ...... ok t/handler.t .......... ok t/headparser-http.t .. ok t/headparser.t ....... ok t/ignore.t ........... ok t/largetags.t ........ ok t/linkextor-base.t ... ok t/linkextor-rel.t .... ok t/magic.t ............ ok t/marked-sect.t ...... ok t/msie-compat.t ...... ok t/offset.t ........... ok t/options.t .......... ok t/parsefile.t ........ ok t/parser.t ........... ok t/plaintext.t ........ ok t/pod.t .............. ok t/process.t .......... ok t/pullparser.t ....... ok t/script.t ........... ok t/skipped-text.t ..... ok t/stack-realloc.t .... ok t/textarea.t ......... ok t/threads.t .......... ok t/tokeparser.t ....... ok t/uentities.t ........ ok t/unbroken-text.t .... ok t/unicode-bom.t ...... ok t/unicode.t .......... ok t/xml-mode.t ......... ok All tests successful. Files=48, Tests=458, 21 wallclock secs ( 0.49 usr + 0.38 sys = 0.87 +CPU) Result: PASS GAAS/HTML-Parser-3.72.tar.gz C:\strawberry\c\bin\dmake.EXE test -- OK Running make install Prepending C:\strawberry\cpan\build\HTML-Parser-3.72-6K97lD/blib/arch +C:\strawbe rry\cpan\build\HTML-Parser-3.72-6K97lD/blib/lib to PERL5LIB for 'insta +ll' WARNING: Unable to unlink 'C:\strawberry\perl\site\lib\auto\HTML\Parse +r\Parser.d ll': Permission denied Going to try to rename it to 'C:\strawberry\perl\site\lib\auto\HTML\Pa +rser\Parse r.dll.AAA'. Rename succesful. Scheduling 'C:\strawberry\perl\site\lib\auto\HTML\Pa +rser\Parse r.dll.AAA' for deletion at reboot. Files found in blib\arch: installing files in blib\lib into architectu +re depende nt library tree Installing C:\strawberry\perl\site\lib\auto\HTML\Parser\Parser.dll Installing C:\strawberry\perl\site\lib\HTML\Entities.pm Installing C:\strawberry\perl\site\lib\HTML\Filter.pm Installing C:\strawberry\perl\site\lib\HTML\HeadParser.pm Installing C:\strawberry\perl\site\lib\HTML\LinkExtor.pm Installing C:\strawberry\perl\site\lib\HTML\Parser.pm Installing C:\strawberry\perl\site\lib\HTML\TokeParser.pm Appending installation info to C:\strawberry\perl\lib/perllocal.pod GAAS/HTML-Parser-3.72.tar.gz C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK Running make for L/LE/LEEJO/CGI-4.36.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\C +GI-4.36-PO ghoC CPAN.pm: Going to build L/LE/LEEJO/CGI-4.36.tar.gz cp lib/CGI.pod blib\lib\CGI.pod cp lib/CGI/Cookie.pm blib\lib\CGI\Cookie.pm cp lib/CGI/Pretty.pm blib\lib\CGI\Pretty.pm cp lib/CGI/HTML/Functions.pod blib\lib\CGI\HTML\Functions.pod cp lib/CGI.pm blib\lib\CGI.pm cp lib/CGI/HTML/Functions.pm blib\lib\CGI\HTML\Functions.pm cp lib/CGI/Carp.pm blib\lib\CGI\Carp.pm cp lib/CGI/Util.pm blib\lib\CGI\Util.pm cp lib/Fh.pm blib\lib\Fh.pm cp lib/CGI/File/Temp.pm blib\lib\CGI\File\Temp.pm cp lib/CGI/Push.pm blib\lib\CGI\Push.pm LEEJO/CGI-4.36.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/headers/*.t t/arbitrary_handles.t ...... ok t/autoescape.t ............. ok t/can.t .................... ok t/carp.t ................... [Tue Aug 29 03:19:23 2017] carp.t: "my" v +ariable $f h masks earlier declaration in same scope at t/carp.t line 448. t/carp.t ................... 1/76 [Tue Aug 29 03:19:23 2017] carp.t: f +oo at C:\s trawberry\cpan\build\CGI-4.36-POghoC\blib\lib/CGI/Carp.pm line 361. t/carp.t ................... ok t/cgi.t .................... 1/25 # cgi-lib.pl routines Use of uninitialized value $src in concatenation (.) or string at C:\s +trawberry\ cpan\build\CGI-4.36-POghoC\blib\lib/CGI.pm line 1824. private_tempfiles has been deprecated at C:\strawberry\cpan\build\CGI- +4.36-POgho C\blib\lib/CGI.pm line 3227. t/cgi.t .................... ok t/changes.t ................ skipped: Test::CPAN::Changes required for + this test t/charset.t ................ ok t/checkbox_group.t ......... ok t/command_line.t ........... skipped: No relevant to Windows t/compiles_pod.t ........... ok t/cookie.t ................. ok t/delete.t ................. ok t/Dump.t ................... ok t/end_form.t ............... ok t/form.t ................... ok t/function.t ............... ok t/gh-155.t ................. ok t/headers.t ................ ok t/headers/attachment.t ..... ok t/headers/charset.t ........ ok t/headers/cookie.t ......... ok t/headers/default.t ........ ok t/headers/nph.t ............ ok t/headers/p3p.t ............ ok t/headers/target.t ......... ok t/headers/type.t ........... ok t/hidden.t ................. ok t/html.t ................... ok t/html_functions.t ......... ok t/http.t ................... ok t/init.t ................... ok t/multipart_globals.t ...... ok t/multipart_init.t ......... ok t/multipart_start.t ........ ok t/no_tabindex.t ............ ok t/param_fetch.t ............ ok t/param_list_context.t ..... ok t/popup_menu.t ............. ok t/postdata.t ............... ok t/pretty.t ................. CGI::Pretty is DEPRECATED and will be rem +oved in a future release. Please see https://github.com/leejo/CGI.pm/issues/162 +for more i nformation at C:\strawberry\cpan\build\CGI-4.36-POghoC\blib\lib/CGI/Pr +etty.pm li ne 21. t/pretty.t ................. ok t/push.t ................... ok t/query_string.t ........... ok t/redirect_query_string.t .. ok t/request.t ................ ok t/rt-31107.t ............... ok t/rt-52469.t ............... ok t/rt-57524.t ............... ok t/rt-75628.t ............... ok t/rt-84767.t ............... ok t/save_read_roundtrip.t .... ok t/sorted.t ................. ok t/start_end_asterisk.t ..... ok t/start_end_end.t .......... ok t/start_end_start.t ........ ok t/unescapeHTML.t ........... ok t/upload.t ................. ok t/uploadInfo.t ............. ok t/url.t .................... ok t/user_agent.t ............. ok t/utf8.t ................... ok t/util-58.t ................ ok t/util.t ................... ok All tests successful. Files=62, Tests=1545, 32 wallclock secs ( 0.75 usr + 0.57 sys = 1.32 + CPU) Result: PASS LEEJO/CGI-4.36.tar.gz C:\strawberry\c\bin\dmake.EXE test -- OK Running make install Prepending C:\strawberry\cpan\build\CGI-4.36-POghoC/blib/arch C:\straw +berry\cpan \build\CGI-4.36-POghoC/blib/lib to PERL5LIB for 'install' Installing C:\strawberry\perl\lib\CGI.pm Installing C:\strawberry\perl\lib\CGI.pod Installing C:\strawberry\perl\lib\Fh.pm Installing C:\strawberry\perl\lib\CGI\Carp.pm Installing C:\strawberry\perl\lib\CGI\Cookie.pm Installing C:\strawberry\perl\lib\CGI\Pretty.pm Installing C:\strawberry\perl\lib\CGI\Push.pm Installing C:\strawberry\perl\lib\CGI\Util.pm Installing C:\strawberry\perl\lib\CGI\File\Temp.pm Installing C:\strawberry\perl\lib\CGI\HTML\Functions.pm Installing C:\strawberry\perl\lib\CGI\HTML\Functions.pod Appending installation info to C:\strawberry\perl\lib/perllocal.pod LEEJO/CGI-4.36.tar.gz C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK Running install for module 'Test::Output' Running make for B/BD/BDFOY/Test-Output-1.031.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/B/BD/BDFOY/Test-Output-1.031 +.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/B/BD/BDFOY/CHECKSUMS Checksum for C:\strawberry\cpan\sources\authors\id\B\BD\BDFOY\Test-Out +put-1.031. tar.gz ok ---- Unsatisfied dependencies detected during ---- ---- BDFOY/Test-Output-1.031.tar.gz ---- ExtUtils::MakeMaker [build_requires] Running make test Make had some problems, won't test Delayed until after prerequisites Running make install Make had some problems, won't install Delayed until after prerequisites Running install for module 'ExtUtils::MakeMaker' Running make for B/BI/BINGOS/ExtUtils-MakeMaker-7.30.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/B/BI/BINGOS/ExtUtils-MakeMak +er-7.30.ta r.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/B/BI/BINGOS/CHECKSUMS Checksum for C:\strawberry\cpan\sources\authors\id\B\BI\BINGOS\ExtUtil +s-MakeMake r-7.30.tar.gz ok Couldn't move C:\strawberry\cpan\build\tmp-3808\ExtUtils-MakeMaker-7.3 +0\lib to C :\strawberry\cpan\build\ExtUtils-MakeMaker-7.30-pzCWn3\lib: No such fi +le or dire ctory at C:\strawberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x2 eeee54)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x2eeee54)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x2eeee54)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x2eeee54)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x2eeee54 +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x2d27e8c)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x2d27e8c)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'WWW::Mechaniz +e') called at C:\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'WWW::Mechanize') called +at C:/stra wberry/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('WWW::Mechanize') called at C:/strawberry/ +perl/lib/A pp/Cpan.pm line 468 App::Cpan::_default('ARRAY(0xbec284)', 'HASH(0x1665f64)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'WWW::Mechanize') called at C:\str +awberry\pe rl\bin/cpan line 8 C:\Documents and Settings\Administrator>

A few additional attempts to reinstall WWW::Mechanize, which gave fewer terminal lines for some reason:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrator>cpan WWW::Mechanize 'new' CPAN: CPAN::SQLite loaded ok (v0.199) Database was generated on Tue, 29 Aug 2017 01:11:57 GMT Running install for module 'WWW::Mechanize' CPAN: YAML loaded ok (v0.71) Running make for O/OA/OALDERS/WWW-Mechanize-1.86.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.024) Checksum for C:\strawberry\cpan\sources\authors\id\O\OA\OALDERS\WWW-Me +chanize-1. 86.tar.gz ok CPAN: Archive::Tar loaded ok (v1.54) CPAN: File::Temp loaded ok (v0.22) Couldn't move C:\strawberry\cpan\build\tmp-2908\WWW-Mechanize-1.86\etc + to C:\str awberry\cpan\build\WWW-Mechanize-1.86-u2xDCt\etc: No such file or dire +ctory at C :\strawberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x1 8c1794)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x18c1794)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x18c1794)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x18c1794)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x18c1794 +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x18c1764)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x18c1764)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'WWW::Mechaniz +e') called at C:\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'WWW::Mechanize') called +at C:/stra wberry/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('WWW::Mechanize') called at C:/strawberry/ +perl/lib/A pp/Cpan.pm line 468 App::Cpan::_default('ARRAY(0xbec254)', 'HASH(0x166642c)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'WWW::Mechanize', '\'new\'') calle +d at C:\st rawberry\perl\bin/cpan line 8 C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator> C:\Documents and Settings\Administrator>cpan WWW::Mechanize CPAN: CPAN::SQLite loaded ok (v0.199) Database was generated on Tue, 29 Aug 2017 01:11:57 GMT Running install for module 'WWW::Mechanize' CPAN: YAML loaded ok (v0.71) Running make for O/OA/OALDERS/WWW-Mechanize-1.86.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.024) Checksum for C:\strawberry\cpan\sources\authors\id\O\OA\OALDERS\WWW-Me +chanize-1. 86.tar.gz ok CPAN: Archive::Tar loaded ok (v1.54) CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build O/OA/OALDERS/WWW-Mechanize-1.86.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Test::Output 0 not found. Warning: prerequisite Test::Warnings 0 not found. Writing Makefile for WWW::Mechanize CPAN: Module::CoreList loaded ok (v2.25) ---- Unsatisfied dependencies detected during ---- ---- OALDERS/WWW-Mechanize-1.86.tar.gz ---- Test::Output [build_requires] Test::Warnings [build_requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Test::Output' Running make for B/BD/BDFOY/Test-Output-1.031.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\B\BD\BDFOY\Test-Out +put-1.031. tar.gz ok Couldn't move C:\strawberry\cpan\build\tmp-3436\Test-Output-1.031\t to + C:\strawb erry\cpan\build\Test-Output-1.031-18fXSW\t: No such file or directory +at C:\stra wberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x3 43858c)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x343858c)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x343858c)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x343858c)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x343858c +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x3437cb4)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x3437cb4)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'WWW::Mechaniz +e') called at C:\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'WWW::Mechanize') called +at C:/stra wberry/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('WWW::Mechanize') called at C:/strawberry/ +perl/lib/A pp/Cpan.pm line 468 App::Cpan::_default('ARRAY(0xbec284)', 'HASH(0x1665c74)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'WWW::Mechanize') called at C:\str +awberry\pe rl\bin/cpan line 8 C:\Documents and Settings\Administrator>cpan WWW::Mechanize 'new' CPAN: CPAN::SQLite loaded ok (v0.199) Database was generated on Tue, 29 Aug 2017 01:11:57 GMT Running install for module 'WWW::Mechanize' CPAN: YAML loaded ok (v0.71) Running make for O/OA/OALDERS/WWW-Mechanize-1.86.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.024) Checksum for C:\strawberry\cpan\sources\authors\id\O\OA\OALDERS\WWW-Me +chanize-1. 86.tar.gz ok CPAN: Archive::Tar loaded ok (v1.54) CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build O/OA/OALDERS/WWW-Mechanize-1.86.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Test::Output 0 not found. Warning: prerequisite Test::Warnings 0 not found. Writing Makefile for WWW::Mechanize CPAN: Module::CoreList loaded ok (v2.25) ---- Unsatisfied dependencies detected during ---- ---- OALDERS/WWW-Mechanize-1.86.tar.gz ---- Test::Output [build_requires] Test::Warnings [build_requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Test::Output' Running make for B/BD/BDFOY/Test-Output-1.031.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\B\BD\BDFOY\Test-Out +put-1.031. tar.gz ok Couldn't move C:\strawberry\cpan\build\tmp-2444\Test-Output-1.031\t to + C:\strawb erry\cpan\build\Test-Output-1.031-9btu0L\t: No such file or directory +at C:\stra wberry\perl\lib/CPAN/Distribution.pm line 516 CPAN::Distribution::run_preps_on_packagedir('CPAN::Distributio +n=HASH(0x3 42a59c)') called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3 +47 CPAN::Distribution::get('CPAN::Distribution=HASH(0x342a59c)') +called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 1687 CPAN::Distribution::make('CPAN::Distribution=HASH(0x342a59c)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 2915 CPAN::Distribution::test('CPAN::Distribution=HASH(0x342a59c)') + called at C:\strawberry\perl\lib/CPAN/Distribution.pm line 3305 CPAN::Distribution::install('CPAN::Distribution=HASH(0x342a59c +)') called at C:\strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein('CPAN::Module=HASH(0x3429cc4)', 'instal +l') called at C:\strawberry\perl\lib/CPAN/Module.pm line 578 CPAN::Module::install('CPAN::Module=HASH(0x3429cc4)') called a +t C:\straw berry\perl\lib/CPAN/Shell.pm line 1790 CPAN::Shell::rematein('CPAN::Shell', 'install', 'WWW::Mechaniz +e') called at C:\strawberry\perl\lib/CPAN/Shell.pm line 1970 CPAN::Shell::__ANON__('CPAN::Shell', 'WWW::Mechanize') called +at C:/stra wberry/perl/lib/App/Cpan.pm line 459 App::Cpan::__ANON__('WWW::Mechanize') called at C:/strawberry/ +perl/lib/A pp/Cpan.pm line 468 App::Cpan::_default('ARRAY(0xbec2b4)', 'HASH(0x1665bac)') call +ed at C:/s trawberry/perl/lib/App/Cpan.pm line 386 App::Cpan::run('App::Cpan', 'WWW::Mechanize', '\'new\'') calle +d at C:\st rawberry\perl\bin/cpan line 8 C:\Documents and Settings\Administrator>


If the GET is damaged, then does that mean I can't download and reinstall a fix to WWW::Mechanize from cpan (because maybe it uses the same GET) ?
Thank you very much for any assistance (I'm way over my head here).

UPDATE:
I have done some experimentation and now believe that WWW::Mechanize does go online but fails to save files.
use strict; use warnings; use diagnostics; use WWW::Mechanize; $|=1; print "Init\n"; if($@){print "\n\$@ = $@\n"; $@=0;} if($!){print "\n\$! = $!\n"; $!=0;} print "Mech\n"; my $mech = WWW::Mechanize->new( autocheck => 1 ); if($@){print "\n\$@ = $@\n"; $@=0;} if($!){print "\n\$! = $!\n"; $!=0;} print "Get\n"; #$mech->get('https://www.google.com/images/branding/googlelogo/1x/goog +lelogo_color_272x92dp.png', ':content_file' => 'z.png'); #$mech->get('https://upload.wikimedia.org/wikipedia/commons/thumb/a/af +/White_pearl_necklace.jpg/220px-White_pearl_necklace.jpg', ':content_ +file' => 'zzz.jpg'); #$mech->get('https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e +/Various_pearls.jpg/210px-Various_pearls.jpg', ':content_file' => 'zz +.jpg'); #$mech->get('http://google.com/ncr'); #print $mech->content( format => + 'text' ); #$mech->get('http://google.com/ncr'); #print $mech->content( format => + 'text' ); if($@){print "\n\$@ = $@\n"; $@=0;} if($!){print "\n\$! = $!\n"; $!=0;} print "\nDone\n"; <>; exit;

In this code I use "#" 7 times.
If I drop any 1 or 0 of them, my terminal shows:
Init Mech $! = Bad file descriptor Get Done
If I drop any 2 # (unless its 5 but not 4, or 7 but not 6 obviously) I get
Init Mech $! = Bad file descriptor Get $! = Bad file descriptor Done

If I drop the last 2 #, I do get the content of the page.
If I understand correctly this means I do get online files/pages but can't save them for some reason.
As before, no combination produced any downloaded files.

Your thoughts ?
Thank you.

Replies are listed 'Best First'.
Re: SOS: Ability to GET got BOMed
by haukex (Archbishop) on Aug 29, 2017 at 19:18 UTC
    Based on the timing, I figured installing File::BOM somehow damaged the files of WWW::Mechanize

    If the files got "damaged" then I think you'd be seeing some more serious error messages from scripts using WWW::Mechanize. If WWW::Mechanize optionally used File::BOM if it is installed, then that might possibly make sense. However, if I am understanding correctly, then you couldn't even get File::BOM installed in the first place? Even if you did, File::BOM isn't mentioned anywhere in the WWW::Mechanize source or the dependency tree. So overall I have to doubt whether simply installing (or trying to install) File::BOM would cause WWW::Mechanize to stop downloading files...

    So I would suggest you debug the two problems separately: Why can't you get new modules installed, and why did your WWW::Mechanize stop working.

    It looks like your cpan is malfunctioning, at various places you're getting error messages like "Couldn't move C:\strawberry\cpan\build\tmp-3808\ExtUtils-MakeMaker-7.30\lib to C:\strawberry\cpan\build\ExtUtils-MakeMaker-7.30-pzCWn3\lib: No such file or directory at C:\strawberry\perl\lib/CPAN/Distribution.pm line 516". This is quite strange. I'm not an expert at debugging the cpan client on Windows, so instead of suggesting things to try, which might muck stuff up even more, perhaps for now as a first step you can just switch CPAN clients - give App::cpanminus a try, cpanm should already come with Strawberry Perl.

    As for WWW::Mechanize, it looks like you're checking for errors - are you getting any? Try removing the eval, since at this stage you're interested in seeing any error messages that may show up. Have you tried setting up a small script (Short, Self-Contained, Correct Example) that just downloads one file, to see if it still works in general? If not, post the code that doesn't work here.

      Thank you haukex.

      you couldn't even get File::BOM installed in the first place?

      Correct.

      File::BOM isn't mentioned anywhere in the WWW::Mechanize source or the dependency tree. So overall I have to doubt whether simply installing (or trying to install) File::BOM would cause WWW::Mechanize to stop downloading files...

      Couldn't them both depend on the same module, that was damaged by File::BOM and so affecting the functionality of WWW::Mechanize ?

      So I would suggest you debug the two problems separately: Why can't you get new modules installed, and why did your WWW::Mechanize stop working.

      I suppose it is possible I have lost the ability to install new modules from cpan some time ago without noticing, as I don't do so often, but I'm sure about this completely new problem with WWW::Mechanize having something to do with the attempt to download/install File::BOM, the timing is just too perfect, and I have done nothing else that might have such an affect on WWW::Mechanize.

      you can just switch CPAN clients - give App::cpanminus a try, cpanm should already come with Strawberry Perl.

      I have no idea what CPAN clients are, but I'll read about it.
      I'm assuming it doesn't require a functioning CPAN to be downloaded/installed.

      Have you tried setting up a small script (Short, Self-Contained, Correct Example) that just downloads one file, to see if it still works in general?

      Please see the above UPDATE that includes such an experiment.
      All files/page url-ed there does in fact exist.

      Thank you.
        Couldn't them both depend on the same module, that was damaged by File::BOM and so affecting the functionality of WWW::Mechanize ?

        That is possible (that's why I was investigating it), but based on my findings and experience I just thought it to be really unlikely, or rather, that other explanations (the two problems are unrelated) are much more likely. If an installation somehow got broken by a failed install of File::BOM, I would expect failures in other modules to be more loud than a silently failing file download. Plus, your logs seemed to be showing that the installation failed even before any files from the modules got to the target directories, meaning the chance that the Perl installation was affected by the install failures is small.

        I'm sure about this completely new problem with WWW::Mechanize having something to do with the attempt to download/install File::BOM

        I'm not sure what makes you so sure, you did write this post after updating the root node with the solution, or not? There is also a way to test this theory separately as well: You can try installing the modules without using cpan, and instead by downloading the tarball yourself and using the usual perl Makefile.PL; make; make test; make install commands (Update: see A Guide to Installing Modules). If that works, then the failure is coming from the cpan tool.

        I have no idea what CPAN clients are, but I'll read about it.

        cpan, what you've been using, is a CPAN client, I was suggesting that instead of cpan, you try cpanm, a different CPAN client that has basically the same functionality (it downloads and installs modules and their dependences).

Re: SOS: Ability to GET got BOMed
by poj (Abbot) on Aug 29, 2017 at 19:14 UTC

    What version of Strawberry ?

    Couldn't move C:\strawberry\cpan\build\tmp-2064\Module-Build-0.4224\t 
    to C:\strawberry\cpan\build\Module-Build-0.4224-5jzHls\t
    
    Do you have any anti-virus programs running ?

    poj

      Thank you poj.

      I'm using Padre 0.56 acording to its "about":
      Perl v5.10.1
      Wx 0.96
      wxWidgets wxWidgets 2.9.0
      Wx::Perl::ProcessStream 0.24
      PPI 1.209
      I'm not sure where to get additional details such as my strawberry version.

      As for antivirus apps: I do have an old version of Zonealarm and Avira running, but neither have reported any issue lately nor had any problems with cpan nor perl in the past.
Re: SOS: Ability to GET got BOMed
by flexvault (Monsignor) on Aug 29, 2017 at 18:36 UTC

    Dear palkia,

    I don't know about these modules. But please wait for some input from monks that use Microsoft. I use AIX Unix and Linux, so I won't try to help until others with MS knowledge can help.

    But, before you lose your job, contact me and I'll help even if I have to install the products you need. But I'm sure you'll find an answer.

    Regards...Ed

    "Well done is better than well said." - Benjamin Franklin

      Thank you Ed.
      I'm currently managing with manual downloads although it does get tidies.
      I'm counting on catching up with my to do list by solving this issue before any nearby deadlines.

      As for installing things yourself to help me out (☺), I'm afraid some of the programs and files I'm working with are not mine to share, and I don't (I asked some time ago on a different mater) have permission and/or ability to send them to others.
      (Thx though, this is probably the nicest thing an online stranger have ever offered to do for me ☺)

        Dear palkie,

        Thank you, but I saw you had a problem with installing the 'BOM', and if needed I would install on a non-production WINxx machine to be able to help you.

        Many times I've been helped by a monk who knew nothing about my actual code, but helped with the concepts that I needed. Never would I ask for the exact code, but just what you needed to get your work completed.

        I only come to this site a couple times per month, so if you need something, please give me as much time as possible to help you. I just don't have as many questions as I used to have :-)

        Regards...Ed

        "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1198286]
Approved by talexb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-19 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found