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

I was wondering if anyone has seen this happen or knows how to correct it... I am trying to get the WWW:Mechanize package to work on v5.9.1 built for sun4-solaris.

ok 1 - use WWW::Mechanize; # Started http://localhost:51918/ ok 2 - The object isa LocalServer ok 3 - Created object isa WWW::Mechanize ok 4 - The object isa HTTP::Response ok 5 - The object isa HTTP::Response ok 6 ok 7 - Get webpage ok 8 - URI should be a string, not an object ok 9 - Got the content-type... ok 10 - ... and the is_html wrapper ok 11 ok 12 - Got the /foo ok 13 - Got relative OK ok 14 - URI shouldn't be an object ok 15 - Got HTML back ok 16 - Got the right page ok 17 - Got the /bar page ok 18 - Got relative OK ok 19 - URI shouldn't be an object ok 20 ok 21 - Got the right page ok 22 - Got the basics page ok 23 - Got relative OK ok 24 - URI shouldn't be an object ok 25 ok 26 ok 27 - Got the right page ok 28 - Got the "refine search" page ok 29 - Got relative OK ok 30 - URI shouldn't be an object ok 31 ok 32 ok 33 - Got the right page ok 34 - tempfile isn't there right now ok 35 ok 36 - Did all the bytes get saved? ok 37 # skip Test::Memory::Cycle not installed ok 1/37 skipped: Test::Memory::Cycle not installed t/local/overload........1..11 ok 1 - use WWW::Mechanize; # Started http://localhost:51926/ ok 2 - The object isa LocalServer ok 3 - The object isa WWW::Mechanize ok 4 - Standard mech chokes on bogus HTML ok 5 - Derived object isa WWW::Mechanize ok 6 - Response I got back isa HTTP::Response ok 7 - Got URL ok 8 - Local page is HTML ok 9 - No warnings this time ok 10 - One form ok 11 - alteration visible in ->content() too ok t/local/page_stack......1..11 ok 1 - use WWW::Mechanize; # Started http://localhost:51930/ ok 2 - The object isa LocalServer ok 3 - Created object isa WWW::Mechanize ok 4 - Page stack starts empty ok 5 - Got start page ok 6 - Page stack starts empty ok 7 - Pushed item onto page stack ok 8 - Pushed item onto page stack ok 9 - Popped item from page stack ok 10 - Popped item from page stack ok 11 - Can't pop beyond end of page stack ok t/local/referer.........1..18 ok 1 - use WWW::Mechanize; ok 2 - The object isa WWW::Mechanize ok 3 - Got first page ok 4 - First page gets sent with empty referrer ok 5 - URI shouldn't be an object \#1 ok 6 - Got second page ok 7 - Referer got sent for absolute url ok 8 - URI shouldn't be an object \#2 ok 9 - Got third page ok 10 - Referer got sent for relative url ok 11 - URI shouldn't be an object \#3 ok 12 - Got fourth page ok 13 - Referer can be set to empty again ok 14 - URI shouldn't be an object \#4 ok 15 - Got fourth page ok 16 - Custom referer can be set ok 17 - URI shouldn't be an object \#5 ok 18 # skip Test::Memory::Cycle not installed ok 1/18 skipped: Test::Memory::Cycle not installed t/local/reload..........1..16 ok 1 - use WWW::Mechanize; # Started http://localhost:51939/ ok 2 - The object isa LocalServer ok 3 - Created object isa WWW::Mechanize ok 4 - Initial reload should fail ok 5 - The object isa HTTP::Response ok 6 - Get google webpage ok 7 - URI should be string, not an object ok 8 ok 9 ok 10 ok 11 ok 12 - The object isa HTTP::Response ok 13 - URI shouldn't be an object ok 14 ok 15 - WWW::Mechanize::Shell test page ok 16 # skip Test::Memory::Cycle not installed ok 1/16 skipped: Test::Memory::Cycle not installed t/local/submit..........1..15 ok 1 - use WWW::Mechanize; # Started http://localhost:51943/ ok 2 - The object isa LocalServer ok 3 - Created the object isa WWW::Mechanize ok 4 - Got back a response isa HTTP::Response ok 5 - Got the correct page ok 6 - URI shouldn't be an object ok 7 - Got local page ok 8 ok 9 - Hopefully no upload happens ok 10 - Got back a response isa HTTP::Response ok 11 - Can click 'submit' ('submit' button) ok 12 - URI shouldn't be an object ok 13 - Found 'Foo' ok 14 - Hopefully no upload happens ok 15 # skip Test::Memory::Cycle not installed ok 1/15 skipped: Test::Memory::Cycle not installed t/mech-dump.............1..4 ok 1 - First line matches ok 2 - Still some expected ok 3 - Still some actual ok 4 - Rest of the lines match ok t/new...................1..14 ok 1 - use WWW::Mechanize; ok 2 - The object isa WWW::Mechanize ok 3 - success() is false before any get ok 4 - res() is undef ok 5 - The object isa WWW::Mechanize ok 6 - WWW::Mechanize->can('request') ok 7 - Set user agent string ok 8 - Set user agent version ok 9 - Can set the agent ok 10 - The object isa WWW::Mechanize ok 11 - WWW::Mechanize->can('request') ok 12 - Aliases don't get translated in the constructor ok 13 - Alias sets the agent ok 14 - Can still set the agent ok t/pod-coverage..........1..0 # Skip Test::Pod::Coverage 1.04 required +for testing POD coverage skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD + coverage t/pod...................1..0 # Skip Test::Pod 1.14 required for testin +g POD skipped all skipped: Test::Pod 1.14 required for testing POD t/regex-error...........1..0 # Skip Test::Warn required to test t/rege +x-error.t skipped all skipped: Test::Warn required to test t/regex-error.t t/select................1..14 ok 1 - use WWW::Mechanize; ok 2 - The object isa WWW::Mechanize ok 3 - Fetched file:///home/bkoertge/library/WWW-Mechanize-1.16/t/sele +ct.html ok 4 - set form to number 1 ok 5 - multi->multi value is bbb ccc ok 6 - multi->multi value is bbb ccc ok 7 - single->multi value is 'aaa' ok 8 - single->multi value is 'aaa' ok 9 - multi->single value is bbb ok 10 - multi->single value is bbb ok 11 - single->single value is 'aaa' ok 12 - single->single value is 'aaa' ok 13 - return 1 after successful select ok 14 - return undef after failed select ok t/taint.................1..0 # Skip Test::Taint required for checking +taintedness skipped all skipped: Test::Taint required for checking taintedness t/tick..................1..6 ok 1 - use WWW::Mechanize; ok 2 - The object isa WWW::Mechanize ok 3 - URI shouldn't be an object ok 4 - file:///home/bkoertge/library/WWW-Mechanize-1.16/t/tick.html ok 5 - The object isa HTML::Form ok 6 - Proper posting ok t/upload................1..6 ok 1 - use WWW::Mechanize; ok 2 - The object isa WWW::Mechanize ok 3 - URI shouldn't be an object ok 4 - file:///home/bkoertge/library/WWW-Mechanize-1.16/t/upload.html ok 5 - Proper posting ok 6 - The uploaded file should be in the request ok t/warn..................1..0 # Skip Test::Warn required to test warn skipped all skipped: Test::Warn required to test warn t/warnings..............1..0 # Skip Test::Warn required to test warnin +gs skipped all skipped: Test::Warn required to test warnings Failed 2/49 test scripts, 95.92% okay. 27/577 subtests failed, 95.32% +okay. Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/live/back.t 1 256 32 1 3.12% 4 t/live/get.t 2 512 26 52 200.00% 1-26 9 tests and 15 subtests skipped. *** Error code 255 make: Fatal error: Command failed for target `test_dynamic'

Edit: g0n replaced pre tags with code tags

READMORE tags added by Arunbear

Replies are listed 'Best First'.
Re: Problems Installing Mechanize
by Corion (Patriarch) on Nov 13, 2005 at 10:18 UTC

    Why did you only post the output of the successful tests and not the output of the failing tests?

    Most likely, you can ignore the failing tests because these are tests against live websites and you either don't have outside network access on your machine, or you don't have $ENV{HTTP_PROXY} set up, or the targeted website (Google I think) has changed the layout.