Perl/Cpan WWW::Mechanize installation error (Terminal) - perl

I need to download a program that needs some modules in Perl, all were installed normally but when I got to the part of installing the WWW :: Mechanize I could not and the following errors appeared:
Error 1:
t/dump.t ............................................ Test/Output.pm
did not return a true value at t/dump.t line 6.
BEGIN failed--compilation aborted at t/dump.t line 6.
#Looks like your test exited with 255 before it could output anything.
t/dump.t ................................. Dubious, test returned 255(wstat 65280, 0xff00)
Failed 6/6 subtests
Error 2:(I do not think that this error is who is disturbing the installation but even so I put)
t/local/overload.t ................................. skipped: Mysteriously
stopped passing, and I don't know why.
Test Summary Report:
Test Summary Report
-------------------
t/dump.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 6 tests but ran 0.
Files=59, Tests=752, 121 wallclock secs ( 0.73 usr 0.21 sys + 33.15 cusr 5.02 csys = 39.11 CPU)
Result: FAIL
Failed 1/59 test programs. 0/752 subtests failed.
Makefile:943: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
OALDERS/WWW-Mechanize-1.91.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.91.tar.gz

Related

Mango::BSON::ObjectID is not getting installed in perl5.36.0 using cpan

I switched from Perl 5.30 to Perl 5.36 and using Mojolicious 8.33. I tried installing Mango::BSON::ObjectID using CPAN.
cpan Mango::BSON::ObjectID
But it was throwing errors.
Test Summary Report
t/bson.t (Wstat: 256 Tests: 182 Failed: 1)
Failed test: 106
Non-zero exit status: 1
Files-13, Tests=205, 4 wallclock secs ( 0.05 usr 0.01 sys+ 1.89
cusr 0.22 csys=2.17 CPU)
Result: FAIL
Failed 1/13 test programs. 1/205 subtests failed.
make: *** [Makefile:942: test_dynamic] Error 255
ODC/Mango-1.30.tar.gz
/usr/bin/make test NOT OK
//hint// to see the cpan testers results for installing this
module, try:
reports ODC/Mango-1.38.tar.gz
So, I just want to know if Mango is supported in Perl 5.36.0 or not. And if it is not being supported, then what is the alternative to Mango?

CPAN dmake.exe: Error code 255, while making 'test_dynamic'

I start using Strawberry Perl and wanted to install some modules using the cpan command. But i receive the error message "Error code 255, while making 'test_dynamic'".
First i tried to install WWW::Mechanize::Firefox finding that i miss three other module: MozRepl::RemoteObject 0.39; Object::Import and Shell::Command. The first two of those 3 give the same error message. The Shell::Command installed whitout any error message.
MozRepl::RemoteObject 0.39:
Test Summary Report
-------------------
t/10-plugin-repl-enter.t (Wstat: 512 Tests: 3 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 2
t/16-plugin-repl-home.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/18-plugin-repl-util-help_url_for.t (Wstat: 768 Tests: 4 Failed: 3)
Failed tests: 2-4
Non-zero exit status: 3
t/19-plugin-repl-util-doc_for.t (Wstat: 768 Tests: 7 Failed: 3)
Failed tests: 2-3, 5
Non-zero exit status: 3
t/20-plugin-json.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=14, Tests=58, 6 wallclock secs ( 0.01 usr + 0.05 sys = 0.06 CPU)
Result: FAIL
Failed 5/14 test programs. 10/58 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
ZIGOROU/MozRepl-0.06.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 ZIGOROU/MozRepl-0.06.tar.gz
Stopping: 'test' failed for 'MozRepl'.
Object::Import
Test Summary Report
-------------------
t/04_handle.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 56 tests but ran 3.
Files=14, Tests=265, 3 wallclock secs ( 0.09 usr + 0.06 sys = 0.16 CPU)
Result: FAIL
Failed 1/14 test programs. 0/265 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
AMBRUS/Object-Import-1.004.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 AMBRUS/Object-Import-1.004.tar.gz
Stopping: 'install' failed for 'Object::Import'.
Failed during this command:
AMBRUS/Object-Import-1.004.tar.gz : make_test NO
I'm not a Perl programmer, just startet.
/edit: the other question is about another package. I read the cpantesters page and the packages should be OK. But could it be that there is something whit the 64-bit version. On the cpantesters site are all windows related entries are for win32:
http://www.cpantesters.org/distro/O/Object-Import.html#Object-Import-1.004
http://www.cpantesters.org/distro/M/MozRepl-RemoteObject.html#MozRepl-RemoteObject-0.39
/edit2: Tried to get some reports and run both installs again, now it looks like the MozRepl::RemoteObject went good, but the Object::Import didn't: So here is the error report from that:
Running install for module 'Object::Import'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\A\AM\AMBRUS\Object-Import-1.004.tar.gz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
............................................................................DONE
Configuring A/AM/AMBRUS/Object-Import-1.004.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Object::Import
Writing MYMETA.yml and MYMETA.json
AMBRUS/Object-Import-1.004.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for A/AM/AMBRUS/Object-Import-1.004.tar.gz
cp lib/Object/Import.pm blib\lib\Object\Import.pm
AMBRUS/Object-Import-1.004.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/00_require.t ... ok
t/01_basic.t ..... ok
t/02_auto.t ...... ok
t/03_bigint.t .... ok
t/04_handle.t ....
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 53/56 subtests
t/05_nometh.t .... ok
t/06_deref.t ..... ok
t/07_mary.t ...... ok
t/08_target.t .... ok
t/09_parm.t ...... ok
t/10_alias.t ..... ok
t/11_exporter.t .. ok
t/12_taint.t ..... ok
t/13_meta.t ...... ok
Test Summary Report
-------------------
t/04_handle.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 56 tests but ran 3.
Files=14, Tests=265, 3 wallclock secs ( 0.09 usr + 0.06 sys = 0.16 CPU)
Result: FAIL
AMBRUS/Object-Import-1.004.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 AMBRUS/Object-Import-1.004.tar.gz
Stopping: 'install' failed for 'Object::Import'.

How do I 'use diagnostics' for Perl on Cygwin?

I want to install DBD::AnyData which requires SQL::Statement which requires Math::Base::Convert. However, it's giving me this error
$ cpan install Math::Base::Convert
...
t/overload.t .............. couldn't find diagnostic data in /usr/lib/perl5/5.22/pods/perldiag.pod /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/lib /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/arch /usr/lib/perl5/site_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.22 /usr/lib/perl5/vendor_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.22 /usr/lib/perl5/5.22/i686-cygwin-threads-64int /usr/lib/perl5/5.22 . t/overload.t at /usr/lib/perl5/5.22/diagnostics.pm line 259, <POD_DIAG> line 704.
Compilation failed in require at t/overload.t line 1.
BEGIN failed--compilation aborted at t/overload.t line 1.
t/overload.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Test Summary Report
-------------------
t/overload.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=20, Tests=5327, 2 wallclock secs ( 0.28 usr 0.01 sys + 0.76 cusr 0.42 csys = 1.48 CPU)
Result: FAIL
Failed 1/20 test programs. 0/5327 subtests failed.
Makefile:859: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
MIKER/Math-Base-Convert-0.11.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIKER/Math-Base-Convert-0.11.tar.gz
I already ran cpan -u.
CPAN version 1.61, Perl 5.22.0
The diagnostics module gets its explanations for messages from the perldoc file perldiag.pod. Both of these are core parts of perl, but some packaging systems choose to distribute documentation in a separate package that might not be installed even when perl is. In the case of Cygwin this package is perl_pods. Installing that package should make the diagnostics module work properly.

Perl install failing for HTTP::Tiny testing for versions 5.18.2 and 5.20.1

I'm trying to use Perlbrew to install Perl on a CENTOS Linux server. I've tried installing several versions of 5.16, 5.18. and 5.20, but they all seem to fail the same tests with HTTP::Tiny:
../cpan/HTTP-Tiny/t/000_load.t .................................... ok
../cpan/HTTP-Tiny/t/001_api.t ..................................... ok
http_proxy URL must be in format http[s]://[auth#]<host>:<port>/
at t/002_croakage.t line 29.
../cpan/HTTP-Tiny/t/002_croakage.t ................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
http_proxy URL must be in format http[s]://[auth#]<host>:<port>/
at t/003_agent.t line 17.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/003_agent.t ...................................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests
../cpan/HTTP-Tiny/t/010_url.t ..................................... ok
../cpan/HTTP-Tiny/t/020_headers.t ................................. ok
../cpan/HTTP-Tiny/t/030_response.t ................................ ok
../cpan/HTTP-Tiny/t/040_content.t ................................. ok
../cpan/HTTP-Tiny/t/050_chunked_body.t ............................ ok
../cpan/HTTP-Tiny/t/060_http_date.t ............................... ok
http_proxy URL must be in format http[s]://[auth#]<host>:<port>/
at t/070_cookie_jar.t line 23.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/070_cookie_jar.t ..............................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests
../cpan/HTTP-Tiny/t/100_get.t ..................................... ok
../cpan/HTTP-Tiny/t/101_head.t .................................... ok
../cpan/HTTP-Tiny/t/102_put.t ..................................... ok
../cpan/HTTP-Tiny/t/103_delete.t .................................. ok
../cpan/HTTP-Tiny/t/104_post.t .................................... ok
../cpan/HTTP-Tiny/t/110_mirror.t .................................. ok
../cpan/HTTP-Tiny/t/130_redirect.t ................................ ok
https_proxy URL must be in format http[s]://[auth#]<host>:<port>/
at t/140_proxy.t line 14.
../cpan/HTTP-Tiny/t/140_proxy.t ...................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
http_proxy URL must be in format http[s]://[auth#]<host>:<port>/
at t/141_no_proxy.t line 13.
../cpan/HTTP-Tiny/t/141_no_proxy.t ................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
../cpan/HTTP-Tiny/t/150_post_form.t ............................... ok
../cpan/HTTP-Tiny/t/160_cookies.t ................................. ok
../cpan/HTTP-Tiny/t/161_basic_auth.t .............................. ok
../cpan/HTTP-Tiny/t/162_proxy_auth.t .............................. ok
../cpan/HTTP-Tiny/t/170_keepalive.t ............................... ok
Test Summary Report
-------------------
../cpan/HTTP-Tiny/t/002_croakage.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/003_agent.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 0.
../cpan/HTTP-Tiny/t/070_cookie_jar.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 4 tests but ran 0.
../cpan/HTTP-Tiny/t/140_proxy.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/141_no_proxy.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=2405, Tests=699314, 794 wallclock secs (70.76 usr 12.81 sys + 437.06 cusr 53.75 csys = 574.38 CPU)
Result: FAIL
make: *** [test_harness] Error 5
I've noticed that 140_proxy.t is trying to use http://localhost:8080 as a server test. However, we already have an httpd running on that port. 002_croakage.t doesn't even contain any tests.
So,
Are these generally known to be bad tests?
Is this an issue that others have run into?
Does this have anything to do with our current service running on port 8080?
Would there be an issue if I did a force install?
And, why is HTTP::Tiny running tests? It's not a standard Perl module that comes with the installation.
Try without your service running on 8080? I'm guessing that's the only reason you are getting failures, but the only way to know for certain is to try.
There are a few failing test reports but not with the errors you are getting and all relating to connecting to an external server (google, github, twitter).
And, why is HTTP::Tiny running tests? It's not a standard Perl module that comes with the installation.
It is a standard Perl module that comes with the Perl distribution, since Perl 5.13.9.

what does this error mean - installing perl module with cpan

I tried to install HTML::TreeBuilderX::ASP_NET with cpan on Windows 7.
I have strawberry perl setup.
Everything went smoothly until the end when I got the following. Is this something I should worry about?
Test Summary Report
-------------------
t/10-traits.t (Wstat: 65280 Tests: 3 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 255
Parse errors: Bad plan. You planned 5 tests but ran 3.
t/boilerplate.t (Wstat: 0 Tests: 2 Failed: 0)
TODO passed: 1-2
Files=7, Tests=22, 3 wallclock secs ( 0.08 usr + 0.01 sys = 0.09 CPU)
Result: FAIL
Failed 1/7 test programs. 2/22 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz: make_test NO
then when installing WWW::Mechanize
I got
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=52, Tests=550, 247 wallclock secs ( 0.42 usr + 0.28 sys = 0.70 CPU)
Result: FAIL
Failed 1/52 test programs. 1/550 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
JESSE/WWW-Mechanize-1.70.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JESSE/WWW-Mechanize-1.70.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
JESSE/WWW-Mechanize-1.70.tar.gz : make_test NO
It tells you that some tests failed and therefore the install will not proceed. The failed tests are in t/10-traits.t and the failed tests are 2 and 3. Whether you should worry about this depends on what the tests are and why they are failing.
These are the failing tests:
eval { HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] ) };
ok ( !$#, 'htmlElement trait construction is good!!' );
eval {
HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] );
HTML::Element->new('a', href => "__doPostBack('foo','bar')" )->httpRequest;
};
like ( $#, qr/<form>/, 'Success with use! (failed without the parent form)' );