I am attempting to install the WWW:Mechanize module on my XAMMP server. I have copied the test results that were displayed at the end of the install here:
Test Summary Report
-------------------
t\local\back.t (Wstat: 256 Tests: 47 Failed: 1)
Failed test: 33
Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
TODO passed: 15-17, 19
Files=51, Tests=554, 203 wallclock secs ( 0.51 usr + 0.11 sys = 0.62 CPU)
Result: FAIL
Failed 1/51 test programs. 1/554 subtests failed.
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0xff'
Stop.
PETDANCE/WWW-Mechanize-1.66.tar.gz
nmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PETDANCE/WWW-Mechanize-1.66.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
PETDANCE/WWW-Mechanize-1.66.tar.gz : make_test NO
Can anyone tell me why there are so many errors, and has WWW:Mechanize installed in spite of these errors?
Test 33 in t/local/back.t (in WWW::Mechanize 1.66 anyway) appears to test for 404s on a local loopback HTTP server, created just for testing. It apparently received a different message than expected for the test.
I'd say you'd be fine installing it and ignoring that one test, since the other 553 seem to have succeeded. You can do it by hand by downloading WWW::Mechanize (or going to your CPAN build directory if you know where it is), and running
perl Makefile.PL
make
make test # just try it again, it might have been transient
make install
You may also wish to visit the WWW::Mechanize bug tracker and report this as a bug, if it persists; it would be nice.
EDIT: More on this issue in the bug tracker, so apparently no need to report it. No fix yet, though.
Some time ago I have analyzed this failure. At least to me it does not seem to be a WWW::Mechanize's bug.
Have a look at:
1/ my LWP (HTTP::Daemon) bug report - https://rt.cpan.org/Public/Bug/Display.html?id=62354
2/ my Socket (gethostbyaddr) bug report - http://rt.perl.org/rt3/Ticket/Display.html?id=78364
--
kmx
P.S. sorry can post just 1 link
Related
I am using the command
sudo perl -MCPAN -e 'install WWW::Mechanize'
to try and install WWW::Mechanize on macOS, and kept getting the error
1/13 Error GETing http://localhost:51623/: Can't connect to localhost:51623 (Connection refused) at t/local/referer.t line 39.
I somewhat fixed this by changing the file /etc/hosts by adding a -v6 at the end of the second instance of the word "localhost". /etc/hosts now reads
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost-v6
Now, at the end of the installation process, I get this Test Summary Report:
t/live/wikipedia.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=58, Tests=608, 69 wallclock secs ( 0.25 usr 0.11 sys + 8.25 cusr 1.28 csys = 9.89 CPU)
Result: FAIL
Failed 1/58 test programs. 0/608 subtests failed.
make: *** [test_dynamic] Error 255
OALDERS/WWW-Mechanize-1.78.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports OALDERS/WWW-Mechanize-1.78.tar.gz
Running make install
make test had returned bad status, won't install without force
How can I install WWW::Mechanize?
The (only) failed test I get when installing without force failed due to the certificate authenticity of the wikipedia page that was being used. After force installing WWW::Mechanize, the module works fine.
If you don't need IP v6, remove it from your 'hosts' file. But to me doesn't make any sense CPAN are trying to get modules from 'localhost' because of this. Anyways, remove that 'ip v6 thing' from your host and try again, please!
I have installed ActivePerl PPM and Strawberry Perl(Padre). Tried installing WWW::Selenium CPAN from command prompt through
perl -MCPAN -e shell
install WWW::Selenium
It throws the following error
Test Summary Report
-------------------
t/test_default_server.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 1.
Files=12, Tests=344, 31 wallclock secs ( 0.14 usr + 0.06 sys = 0.20 CPU)
Result: FAIL
Failed 1/12 test programs. 1/344 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
MATTP/Test-WWW-Selenium-1.36.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MATTP/Test-WWW-Selenium-1.36.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
MATTP/Test-WWW-Selenium-1.36.tar.gz : make_test NO
Also I have installed Selenium stand alone server (a jar file). But the following code doesn't work in command prompt.
java -jar <path of the selenium server>
P.S: I don't know Perl. I'm a beginner.
I am using strawberry Perl win32 version 5.16.3.1 on Windows 7 and am trying to install the Devel::REPL module which seems to use module-build-tiny and both fail. From the install I get:
---- ETHER/Devel-REPL-1.003025.tar.gz ---
Module::Build::Tiny [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::Tiny'
...
Test Summary Report
-------------------
t/simple.t (Wstat: 1280 Tests: 21 Failed: 0)
Non-zero exit status: 5
Parse errors: No plan found in TAP output
Files=3, Tests=22, 14 wallclock secs ( 0.13 usr + 0.06 sys = 0.19 CPU)
Result: FAIL
LEONT/Module-Build-Tiny-0.028.tar.gz
C:\strawberry\perl\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports LEONT/Module-Build-Tiny-0.028.tar.gz
Running Build install
make test had returned bad status, won't install without force
Stopping: 'install' failed for 'Module::Build::Tiny'.
Failed during this command:
LEONT/Module-Build-Tiny-0.028.tar.gz : make_test NO
I tried running force but it still fails at the first simple.t test - a dialog opens to say that Perl has stopped running.
Thoughts on what I need to do to get this to work? Thanks.
Problem solved. Conflict with MinGW which was in the path prior to Strawberry's MinGW environment. Changed the path order and it works fine now.
I am trying to get a Perl script running which was simply copied from one Windows 2003 x64 to another Windows machine of the same type.
I installed ActivePerl and I receive following error:
F:\Supportsaves\Scripts\Supportsave_Script>Can't locate Net/SSH/Perl.pm in #INC (#INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at F:\Supportsaves\Scripts\switches_supportsave.pl line 11.
BEGIN failed--compilation aborted at F:\Supportsaves\Scripts\switches_supportsave.pl line 11.
I have searched and possibly the Net::SSH::Perl is missing, but I don't get it installed (after setting the proxy) I get
F:\Supportsaves\Scripts\Supportsave_Script>ppm install Net-SSH-Perl
ppm install failed: Can't find any package that provides Net-SSH-Perl
When using ppm I can't find this module in GUI.
CPAN creates other errors.
Any help is appreciated.
Result after installing Net::SSH::Perl in Strawberry, CPAN Test Summary Report
-------------------
t/03-packet.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 10 tests but ran 0.
Files=12, Tests=106, 2 wallclock secs ( 0.09 usr + 0.03 sys = 0.12 CPU)
Result: FAIL`
Failed 1/12 test programs. 0/106 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
2 dependencies missing (Math::Pari,Crypt::RSA); additionally test harness failed`
C:\Perl\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TURNSTEP/Net-SSH-Perl-1.34.tar.gz
Running make install
make test had returned bad status, won't install without force`
`F:\Supportsaves\Scripts\Supportsave_Script>`
-----------------
Installing in Active Perl with CPAN Net::SSH::Perl does partly work well, there are
missing dependencies, which can't be installed either...
Result: PASS
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
Tests succeeded but 7 dependencies missin
(Crypt::IDEA,Math::Pari,Crypt::DSA,Convert::PEM,String::CRC32,Math::GMP,Crypt
::RSA)
TURNSTEP/Net-SSH-Perl-1.34.tar.gz
[dependencies] -- NA
Running make install
make test had returned bad status, won't install without force`
`F:\Supportsaves\Scripts\Supportsave_Script>`
Crypt::IDEA fails ...
C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32
\bin\ld.exe: cannot find -lbufferoverflowU
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\Crypt\IDEA\IDEA.dll'
DPARIS/Crypt-IDEA-1.08.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.35)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible `
As far as I can tell, the Net::SSH::Perl module is only in the Bribes ppm repository at
http://www.bribes.org/perl/ppm/
If you add that to your ppm's list of repositories it should install it correctly.
Try this, this may works:
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH-Perl.ppd
regards,
I am trying to install HTML-Parser-3.64 and I get following report while running make test:
ERL_DL_NONLAZY=1 /home/Perl/bin/perl -Iblib/arch -Iblib/lib -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1/sun4.SVR4 -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests #ARGV;' t/*.t
t/api_version........ok
t/argspec-bad........ok
t/argspec............ok
t/argspec2...........ok
t/attr-encoded.......ok
t/callback...........ok
t/case-sensitive.....ok
t/cases..............ok
t/comment............ok
t/crashme............ok
t/declaration........ok
t/default............ok
t/document...........ok
t/dtext..............ok
t/entities...........ok 1/17
t/entities...........NOK 17# Failed test (t/entities.t at line 74)
# got: 'Attention Homeοωnөrs...1ѕt Tімe Eνөг'
# expected: 'Attention HomeοÏnÓ©rs...1Ñt TÑмe Eνөг'
# Looks like you failed 1 test of 17.
t/entities...........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 17
Failed 1/17 tests, 94.12% okay
t/entities2..........ok
t/filter-methods.....ok
t/filter.............ok
t/handler-eof........ok
t/handler............ok
t/headparser-http....ok
t/headparser.........ok
4/15 skipped: Need Unicode support
t/ignore.............ok
t/largetags..........ok
t/linkextor-base.....ok
t/linkextor-rel......ok
t/magic..............ok
t/marked-sect........ok
t/msie-compat........ok
t/offset.............ok
t/options............ok
t/parsefile..........ok
t/parser.............ok
t/plaintext..........ok
t/pod................skipped
all skipped: Test::Pod 1.00 required for testing POD
t/process............ok
t/pullparser.........ok
t/script.............ok
t/skipped-text.......ok
t/stack-realloc......ok
t/textarea...........ok
t/threads............skipped
all skipped: Not configured for threads
t/tokeparser.........ok
t/uentities..........ok 1/26# Looks like you planned 26 tests but ran 1 extra.
t/uentities..........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 27
Failed 1/26 tests, 96.15% okay (less 27 skipped tests: -2 okay, -7.69%)
t/unbroken-text......ok
t/unicode-bom........ok
2/2 skipped: This perl does not support Unicode
t/unicode............skipped
all skipped: This perl does not support Unicode
t/xml-mode...........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/entities.t 1 256 17 1 5.88% 17
t/uentities.t 1 256 26 1 3.85% 27
3 tests and 33 subtests skipped.
Failed 2/48 test scripts, 95.83% okay. 0/338 subtests failed, 100.00% okay.
*** Error code 11
make: Fatal error: Command failed for target `test_dynamic'
I have Perl version 5.6.1. and 3.64 version of Parser on Solaris 8.
I have seen following similar error reported by another person on internet at http://www.cpantesters.org/cpan/report/6653478. But could not see any reply or solution for that.
If you are comfortable with the other test results, and you don't expect to use HTML::Parser for pages which require extended character sets, then you can force an install.
From command-line:
$ perl -MCPAN -e 'force install HTML::Parser'
From CPAN command line:
cpan> force install HTML::Parser
From your build directory (if you'd rather not use CPAN):
mv t/entities.t t/entities.tt
mv t/uentities.t t/uentities.tt
make install
You need to report it to HTML::Parser bug tracker. Cpantesters results are only reports, in many cases automatic, so to gain attention of author you need to use bug tracker.
P.S. Upgrading is also a good idea (in case you have no problems of doing this) - Perl has changed much in 9 years from 5.6.1.