perl PDL module fails to install on linux - perl

I am using cpan -L local PDL::Graphics::PLplot. I am getting a failure message.
Test Summary Report
-------------------
t/plplot.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/plplot_library_tests.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=3, Tests=0, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.20 cusr 0.01 csys = 0.24 CPU)
Result: FAIL
Failed 2/3 test programs. 0/0 subtests failed.
Makefile:803: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
-> FAIL Installing PDL::Graphics::PLplot

When installing using cpanm I noticed I was missing some modules libpdl-stats-perl Cannot find hdf library, libdf.a, libplplotd.so, HDF, GD, Proj once those were installed it started working. I did have to install to a non standard perl directory.

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?

perlbrew install of perl-5.32.1 fails on macOS

perlbrew install perl-5.32.1
fails on macOS Big Sur (11.3.1)
The end of the log file includes this:
Test Summary Report
-------------------
porting/libperl.t (Wstat: 65280 Tests: 35 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=2678, Tests=1208628, 934 wallclock secs (75.33 usr 15.27 sys + 505.35 cusr 79.82 csys = 675.77 CPU)
Result: FAIL
make: *** [test_harness] Error 1
##### Brew Failed #####
It also fails in the same way when I try to install perl versions 5.32.0 and 5.30.3
Any clues as to why the perl installation is failing? And how to fix it?

Failed installation of Bio::Grep on Windows subsystem for Linux

I have installed bioperl on WSL Ubuntu 18.04 with sudo apt-get install bioperl bioperl-run. I tried to install Bio::Grep with cpanm but it failed. From build.log file it seems that something fails during testing:
#
# *****************************************************************************
# * Bioperl : FOUND *
# * Bioperl-run: FOUND *
# * Backend : No backend found in path. You should install the back-ends *
# * before running these tests. This way you make sure that the *
# * parsers work with your installed version of the back-end. *
# * EMBOSS : FOUND *
# *****************************************************************************
t/00.checkprereq.t ............ ok
# Failed test 'use Bio::Grep::Backend::Agrep;'
# at t/00.load.t line 14.
# Tried to use 'Bio::Grep::Backend::Agrep'.
# Error: UNIVERSAL does not export anything at ...
...
Test Summary Report
-------------------
t/00.load.t (Wstat: 1280 Tests: 12 Failed: 5)
Failed tests: 3-7
Non-zero exit status: 5
t/10.backends.all.t (Wstat: 65280 Tests: 133 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 344 tests but ran 133.
t/11.backends.guugle.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Parse errors: Bad plan. You planned 0 tests but ran 1.
t/11.backends.re.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/20.filter.t (Wstat: 65280 Tests: 17 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 46 tests but ran 17.
t/30.features.alignments.t (Wstat: 65280 Tests: 50 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 108 tests but ran 50.
t/30.features.updownstream.t (Wstat: 65280 Tests: 16 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 46 tests but ran 16.
t/40.utils.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/50.synopsis.t (Wstat: 512 Tests: 9 Failed: 2)
Failed tests: 6-7
Non-zero exit status: 2
Files=13, Tests=242, 10 wallclock secs ( 0.11 usr 0.19 sys + 2.33 cusr 5.13 csys = 7.76 CPU)
Result: FAIL
Failed 9/13 test programs. 8/242 subtests failed.
-> FAIL Installing Bio::Grep failed
It seems that someone created ticket and encountered similar problem before but I did not find a solution.
The fix is simple: Remove the use UNIVERSAL ...; line.
wget https://cpan.metacpan.org/authors/id/L/LI/LIMAONE/Bio-Grep-v0.10.6.tar.gz
tar xvzf Bio-Grep-v0.10.6.tar.gz
cd Bio-Grep-v0.10.6
perl -pe's/^(?=use UNIVERSAL)/#/' -i~ lib/Bio/Grep/Backend/BackendI.pm
perl Makefile.PL && make test && make install

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

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

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)' );