Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

WWW::Mechanize on perl v5.18

by abualiga (Scribe)
on Apr 29, 2015 at 00:05 UTC ( [id://1125075]=perlquestion: print w/replies, xml ) Need Help??

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

Hi All,

I have perl 5.18 and am having problems installing WWW::Mechanize. The issue is documented: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762259 and here https://groups.google.com/forum/#!topic/www-mechanize-commits/mu0hboVGNTc but I don't know of a workaround. Is there an existing solution? Below is output when trying to install using cpan.

many thanks!

$ cpan WWW::Mechanize Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: Storable loaded ok (v2.51) Reading '/Users/abualiga/.cpan/Metadata' Database was generated on Tue, 28 Apr 2015 09:41:02 GMT CPAN: YAML loaded ok (v1.14) CPAN: Time::HiRes loaded ok (v1.9726) Reading 49 yaml files from /Users/abualiga/.cpan/build/ DONE Restored the state of none (in 0.4976 secs) Running install for module 'WWW::Mechanize' ETHER/WWW-Mechanize-1.74.tar.gz Has already been unwrapped into directory /Users/abualiga/.cpan/buil +d/WWW-Mechanize-1.74-hkUMDD ETHER/WWW-Mechanize-1.74.tar.gz Has already been prepared ETHER/WWW-Mechanize-1.74.tar.gz Has already been made Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/l +ib', 'blib/arch')" t/00-load.t t/add_header.t t/aliases.t t/area_link +.t t/autocheck.t t/clone.t t/content.t t/cookies.t t/credentials-api. +t t/credentials.t t/die.t t/dump.t t/field.t t/find_frame.t t/find_im +age.t t/find_inputs.t t/find_link-warnings.t t/find_link.t t/find_lin +k_id.t t/form-parsing.t t/form_with_fields.t t/frames.t t/image-new.t + t/image-parse.t t/link-base.t t/link-relative.t t/link.t t/new.t t/p +od-coverage.t t/pod.t t/regex-error.t t/save_content.t t/select.t t/t +aint.t t/tick.t t/untaint.t t/upload.t t/warn.t t/warnings.t t/local/ +back.t t/local/click.t t/local/click_button.t t/local/content.t t/loc +al/encoding.t t/local/failure.t t/local/follow.t t/local/form.t t/loc +al/get.t t/local/nonascii.t t/local/overload.t t/local/page_stack.t t +/local/referer.t t/local/reload.t t/local/submit.t t/mech-dump/mech-d +ump.t t/00-load.t .............. 1/2 # Testing WWW::Mechanize 1.74, with LWP + 6.05, Perl 5.018002, /usr/bin/perl # Test::Memory::Cycle 1.04 is installed. t/00-load.t .............. ok t/add_header.t ........... ok t/aliases.t .............. ok t/area_link.t ............ ok t/autocheck.t ............ ok t/clone.t ................ ok t/content.t .............. ok t/cookies.t .............. # Test server http://127.0.0.1:33224 as PID + 57670 t/cookies.t .............. ok t/credentials-api.t ...... Use of uninitialized value in lc at /System +/Library/Perl/Extras/5.18/LWP/UserAgent.pm line 605. t/credentials-api.t ...... ok t/credentials.t .......... ok t/die.t .................. ok t/dump.t ................. ok t/field.t ................ ok t/find_frame.t ........... ok t/find_image.t ........... ok t/find_inputs.t .......... ok t/find_link-warnings.t ... ok t/find_link.t ............ ok t/find_link_id.t ......... ok t/form-parsing.t ......... ok t/form_with_fields.t ..... 1/? There are 2 forms with the named fields +. The first one was used. at t/form_with_fields.t line 27. t/form_with_fields.t ..... ok t/frames.t ............... ok t/image-new.t ............ ok t/image-parse.t .......... ok t/link-base.t ............ ok t/link-relative.t ........ ok t/link.t ................. ok t/local/back.t ........... 1/47 Use of the encoding pragma is deprecat +ed at /Users/abualiga/.cpan/build/WWW-Mechanize-1.74-hkUMDD/t/local/l +og-server line 6. Error GETing http://localhost:62430/: Can't connect to localhost:62430 + (Connection refused) at t/local/back.t line 55.

Replies are listed 'Best First'.
Re: WWW::Mechanize on perl v5.18
by choroba (Cardinal) on Apr 29, 2015 at 08:50 UTC
    I've had similar issues. The problem wasn't related to encodings, though, but to IPv4 versus IPv6 configuration. I had to rename localhost for IPv6 to localhost-v6 in /etc/hosts.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: WWW::Mechanize on perl v5.18
by Anonymous Monk on Apr 29, 2015 at 01:54 UTC

    Is there an existing solution? Below is output when trying to install using cpan.

    Solution to what, installing the module?  cpan -f -i -T  Modulename forces install without running tests

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found