I am tiring to run multiple jobs in parallel by using perl script which use Parallel:ForkManager.
#!/usr/bin/perl -w
use Parallel::ForkManager;
my #make_obj = qw(
mode1_testlist
mode1_testlist1
mode1_testlist2
);
my $fm = $pm = Parallel::ForkManager-> new(3);
foreach my $obj (#make_obj) {
$fm->start and next;
print("make regression MODE=1 MODELIST=$make_obj");
$fm->finish();
}
but it throws me below error.
Can't locate Parallel/ForkManager.pm in #INC (#INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at parallel_run.pl line 3.
BEGIN failed--compilation aborted at parallel_run.pl line 3.
I have downloaded Parallel-ForkManager-1.03.tar.gz but I don't know where to keep it I mean how to install it.
I tried perl Makefile.PL && make test && make install:
WARNING: META_MERGE is not a known parameter.
WARNING: BUILD_REQUIRES is not a known parameter.
WARNING: LICENSE is not a known parameter.
Checking if your kit is complete...
Looks good
'BUILD_REQUIRES' is not a known MakeMaker parameter name.
'LICENSE' is not a known MakeMaker parameter name.
'META_MERGE' is not a known MakeMaker parameter name.
Writing Makefile for Parallel::ForkManager
cp lib/Parallel/ForkManager.pm blib/lib/Parallel/ForkManager.pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"test_harness(0,'blib/lib', 'blib/arch')" t/*.t
t/00-load.............ok 1/3 (in cleanup) Undefined subroutine
&File::Path::remove_tree called at /h/altera_dump2/vjain419/regression_flow_bck
/regression_flow/MSS1/hw/verif/top_/00e/tools/Parallel-ForkManager-1.03/blib
/lib/Parallel /ForkManager.pm line 662.
t/00-load.............ok
t/01-utf8-all.........skipped
all skipped: Need utf8::all for this test crashing on Windows
t/02-callback.........Array found where operator expected at t/02-callback.t line
21,at end of line
(Do you need to predeclare explain?)
syntax error at t/02-callback.t line 21, near "explain #out"
xecution of t/02-callback.t aborted due to compilation errors.
# Looks like your test died before it could output anything.
t/02-callback.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/03-callback-data....Array found where operator expected at t/03-callback-data.t line 13, at end of line
(Do you need to predeclare explain?)
syntax error at t/03-callback-data.t line 13, near "explain #out"
Execution of t/03-callback-data.t aborted due to compilation errors.
# Looks like your test died before it could output anything.
t/03-callback-data....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/02-callback.t 255 65280 2 4 200.00% 1-2
t/03-callback-data.t 255 65280 1 2 200.00% 1
1 test skipped.
Failed 2/4 test scripts, 50.00% okay. 3/6 subtests failed, 50.00% okay.
make: *** [test_dynamic] Error 255
Just use
cpan Parallel::ForkManager
Alternatively, execute the following command after making sure you have its dependencies (POSIX, Storable, File::Spec, File::Temp, File::Path 2.00 and Test::More 0.81_01) installed:
tar xvzf Parallel-ForkManager-1.03.tar.gz
cd Parallel-ForkManager-1.03
perl Makefile.PL && make test && make install
Like some of the comments on the accepted answer suggest, there can be a dependency missing. The following worked for me:
% cpan Test::More
% cpan Parallel::ForkManager
Related
I tried to run this command in the terminal from my Mac OS, which I copied from a protocol:
FEELnc_codpot.pl –i <unannotated_transcript.fa> -a <mRNA_sequence.fa> -g <reference_genome.fa> -m ’shuffle’ –o <unannotated_transcript>
However, I get an error that the command cannot be found, probably because I am not using perl, so I entered:
perl FEELnc_codpot.pl
which gives me the following error:
Can't locate Bio/SeqIO.pm in #INC (you may need to install the Bio::SeqIO module) (#INC contains: /opt/anaconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level /opt/anaconda3/lib/site_perl/5.26.2 /opt/anaconda3/lib/5.26.2/darwin-thread-multi-2level /opt/anaconda3/lib/5.26.2 .) at FEELnc_codpot.pl line 14.
So I copied seqio.pm from the bioperl directory which I had downloaded and placed it in /opt/anaconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level directory. However, this does not resolve the error. When I tried to run this command:
perl seqio.pm
I get this message:
Can't locate Bio/Factory/FTLocationFactory.pm in #INC (you may need to install the Bio::Factory::FTLocationFactory module) (#INC contains: /opt/anaconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level /opt/anaconda3/lib/site_perl/5.26.2 /opt/anaconda3/lib/5.26.2/darwin-thread-multi-2level /opt/anaconda3/lib/5.26.2 .) at seqio.pm line 339. BEGIN failed--compilation aborted at seqio.pm line 339.
So I copied FTLocationFactory.pm into /opt/anaconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level.
Again this did not resolve the error. But gives the message that I also need Simple.pm in #INC. Which I copied into the correct directory (darwin-thread-multi-2level)
However, again this is not sufficient.
Does anyone know how to get this perl script working and resolve this error?
Edit:
Test Summary Report
-------------------
t/00-compile.t (Wstat: 7168 Tests: 511 Failed: 28)
Failed tests: 51, 64, 69, 81, 158, 170, 179-184, 331
337-342, 358, 365, 375, 430, 467, 470, 482
494, 507
Non-zero exit status: 28
t/Root/RootIO.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 1.
Files=211, Tests=13892, 138 wallclock secs ( 2.50 usr 0.72 sys + 100.25 cusr 18.37 csys = 121.84 CPU)
Result: FAIL
Failed 2/211 test programs. 28/13892 subtests failed.
make: *** [test_dynamic] Error 255
CJFIELDS/BioPerl-1.7.8.tar.gz
9 dependencies missing (Graph::Directed,LWP::UserAgent,List::MoreUtils,Test::Memory::Cycle,XML::DOM,XML::LibXML,XML::LibXML::Reader,XML::Parser::PerlSAX,XML::Twig); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports CJFIELDS/BioPerl-1.7.8.tar.gz**
The full output is several pages long so for now I just inserted the summary output.
It is not a good idea to try to resolve these errors by simply copying modules around your filesystem. You need to install them into your Perl module library correctly.
Both of the modules you mention are part of the BioPerl distribution, so it's likely that you can solve your problems by installing that.
$ sudo cpan BioPerl
See cpan for more details.
I am trying to install DBI (after failing DBD) on alpine 3.12 and keep getting the errors below. I tried the most recent version of DBI and 1.628 which seems to be released right after Perl v5.16.3 (which I need to use). I updated Test::Simple, Test::More and Pod::Simple.
Errorlog (shortend):
cpanm https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
cpanm (App::cpanminus) 1.7044 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1598444706.8
You have make /usr/bin/make
You have /usr/bin/wget
You have /usr/bin/tar: tar (GNU tar) 1.32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
Fetching https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
-> OK
Unpacking DBI-1.628.tar.gz
Entering DBI-1.628
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.63_02)
Configuring DBI-1.628
Running Makefile.PL
Your perl was compiled with gcc (version 9.3.0), okay.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
[...]
t/zvxgnp_85gofer.t
Checking if your kit is complete...
Looks good
I see you're using perl 5.016003 on x86_64-linux-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 6.48 ... Yes (6.63_02)
Checking if you have Test::Simple 0.90 ... Yes (0.98)
Building and testing DBI-1.628
/opt/perl/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
[...]
# Failed test 'use DBI::DBD::SqlEngine;'
# at t/48dbi_dbd_sqlengine.t line 18.
# Tried to use 'DBI::DBD::SqlEngine'.
# Error: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
# Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
# Failed test 'use DBD::File;'
# at t/48dbi_dbd_sqlengine.t line 19.
# Tried to use 'DBD::File'.
# Error: Attempt to reload DBI/DBD/SqlEngine.pm aborted.
# Compilation failed in require at (eval 11) line 2.
# ...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
# Compilation failed in require at (eval 9) line 2.
# BEGIN failed--compilation aborted at (eval 9) line 2.
install_driver(File) failed: Attempt to reload DBD/File.pm aborted.
Compilation failed in require at (eval 12) line 3.
at t/48dbi_dbd_sqlengine.t line 22.
# Tests were run but no plan was declared and done_testing() was not seen.
t/48dbi_dbd_sqlengine.t .........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/3 subtests
# Failed test 'use DBD::File;'
# at t/49dbd_file.t line 18.
# Tried to use 'DBD::File'.
# Error: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
# Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
# Compilation failed in require at (eval 9) line 2.
# ...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
# BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
install_driver(File) failed: Attempt to reload DBD/File.pm aborted.
Compilation failed in require at (eval 11) line 3.
at t/49dbd_file.t line 30.
# Tests were run but no plan was declared and done_testing() was not seen.
t/49dbd_file.t ..................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/2 subtests
Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
Compilation failed in require at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/DBD/SqlEngine.pm line 27.
Compilation failed in require at (eval 9) line 2.
...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/File.pm line 34.
Compilation failed in require at (eval 8) line 2.
...propagated at /opt/perl/lib/5.16.3/base.pm line 84.
BEGIN failed--compilation aborted at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBD/DBM.pm line 25.
Compilation failed in require at t/50dbm_simple.t line 7.
t/50dbm_simple.t ................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
install_driver(DBM) failed: Bareword "Errno::ENOENT" not allowed while "strict subs" in use at /root/.cpanm/work/1598444706.8/DBI-1.628/blib/lib/DBI/SQL/Nano.pm line 301.
Thanks for any insights.
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.
When I try to install the Inline package with cpan via cpan> install Inline I get the following error at the end:
make: *** [test_dynamic] Error 255
SISYPHUS/Inline-0.53.tar.gz
/opt/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SISYPHUS/Inline-0.53.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
SISYPHUS/Inline-0.53.tar.gz : make_test NO
Here is the complete installation log:
cpan[1]> install Inline
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.008)
CPAN: YAML loaded ok (v0.88)
Going to read /root/.cpan/build/
............................................................................DONE
Found 1 old build, restored the state of 1
............................................................................DONE
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Wed, 08 Jan 2014 07:41:07 GMT
HTTP::Date not available
..............
New CPAN.pm version (v2.00) available.
[Currently running version is v1.9205]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
CPAN: Time::HiRes loaded ok (v1.9711)
..............................................................DONE
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /root/.cpan/Metadata
Running install for module 'Inline'
Running make for S/SI/SISYPHUS/Inline-0.53.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Inline-0.53-gk9HIk
Has already been made
Running make test
make[1]: Entering directory `/root/.cpan/build/Inline-0.53-gk9HIk/C'
make[1]: Leaving directory `/root/.cpan/build/Inline-0.53-gk9HIk/C'
PERL_DL_NONLAZY=1 /share/MD0_DATA/.qpkg/Optware/bin/perl5.10.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00init...............ok
t/01usages.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/01usages.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/01usages.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/01usages.t line 5, <POD_DIAG> line 647.
t/01usages.............dubious
Test returned status 9 (wstat 2304, 0x900)
t/02config.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/02config.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/02config.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/02config.t line 5, <POD_DIAG> line 647.
t/02config.............dubious
Test returned status 9 (wstat 2304, 0x900)
t/03errors.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/03errors.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/03errors.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/03errors.t line 5, <POD_DIAG> line 647.
t/03errors.............dubious
Test returned status 9 (wstat 2304, 0x900)
t/04create.............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/04create.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/04create.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/04create.t line 5, <POD_DIAG> line 647.
t/04create.............dubious
Test returned status 9 (wstat 2304, 0x900)
t/05files..............couldn't find diagnostic data in /opt/lib/perl5/5.10.0/pods/perldiag.pod blib/lib . /root/.cpan/build/Inline-0.53-gk9HIk/blib/lib /root/.cpan/build/Inline-0.53-gk9HIk/blib/arch /opt/lib/perl5/5.10.0/arm-linux /opt/lib/perl5/5.10.0 /opt/lib/perl5/site_perl/5.10.0/arm-linux /opt/lib/perl5/site_perl/5.10.0/arm-none-linux-gnueabi /opt/lib/perl5/site_perl/5.10.0 t/05files.t at /opt/lib/perl5/5.10.0/diagnostics.pm line 268, <POD_DIAG> line 647.
Compilation failed in require at t/05files.t line 5, <POD_DIAG> line 647.
BEGIN failed--compilation aborted at t/05files.t line 5, <POD_DIAG> line 647.
t/05files..............dubious
Test returned status 9 (wstat 2304, 0x900)
t/06rewrite_config.....ok
t/07rewrite2_config....ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/01usages.t 9 2304 ?? ?? ??
t/02config.t 9 2304 ?? ?? ??
t/03errors.t 9 2304 ?? ?? ??
t/04create.t 9 2304 ?? ?? ??
t/05files.t 9 2304 ?? ?? ??
Failed 5/8 test scripts. 0/5 subtests failed.
Files=8, Tests=5, 3 wallclock secs ( 2.30 cusr + 0.14 csys = 2.44 CPU)
Failed 5/8 test programs. 0/5 subtests failed.
make: *** [test_dynamic] Error 255
SISYPHUS/Inline-0.53.tar.gz
/opt/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SISYPHUS/Inline-0.53.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
SISYPHUS/Inline-0.53.tar.gz : make_test NO
Unfortunately I'm a newbie to cpan and perl, so I don't know how to resolve this issue. I already tried to reinstall perl but with no success.
If it is important for you I'm running this on my QNAP NAS TS-419P+:
[~] # uname -a
Linux QNAP 2.6.33.2 #1 Fri Jul 26 04:41:05 CST 2013 armv5tel unknown
Here is the perl version I'm using:
[~] # perl --version
This is perl, v5.10.0 built for arm-none-linux-gnueabi
As DavidO wrote, the test fails at use diagnostics; You can check this by executing this line by itself (perl -e 'use diagnostics;').
diagnostics.pm tries to read diagnostic messages from perldiag.pod (which is mentioned in the error message).
Looks like it's missing on your system.
So, you need to install the package with that file (or otherwise get it to the specified path) of the version corresponding to your Perl's. E.g. in Cygwin, it's in the perl_pods package which, you guessed it, is not installed by default.
Investigating the first error first is always a good course of action. In this case, that's the following:
couldn't find diagnostic data in
(long list of paths excluded from copy/paste)
Compilation failed in require at t/01usages.t line 5,
Looking at the distribution's source code we find that line 5 of t/01usages.t is:
use diagnostics;
The diagnostics pragma is part of the core Perl distribution. For diagnostics to be missing necessary files indicates that the problem is that your installation of Perl is either broken or incomplete (which is the subset of "broken" most likely to be at cause here). Resolve that issue first.
brian's Guide to Solving Any Perl Problem: "Solve the first problem first." In this case, in doing so, we discover the problem is unrelated to the module, and instead, related to the quality of your Perl installation.
I'm trying to install some libraries using Perl from the command line:
perl -MCPAN -e "install XML::Tidy"
However, I'm not being able to:
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running Build test
t\00pod.t ..... ok
t\00podc.t .... Can't locate Test/Pod/Coverage.pm in #INC (#INC contains: C:\xam
pp\perl\bin\.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib C:\xampp\perl\bin\
.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\arch C:/xampp/perl/lib C:/xampp/pe
rl/site/lib .) at t\00podc.t line 1.
BEGIN failed--compilation aborted at t\00podc.t line 1.
t\00podc.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t\00small.t ... Base class package "XML::XPath" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in #INC (#INC contains: C:\xampp\perl\bin\.cpa
n\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib C:\xampp\perl\bin\.cpan\build\XML-
Tidy-1.12.B55J2qn-y5sVpz\blib\arch C:/xampp/perl/lib C:/xampp/perl/site/lib .).
at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib/XML/Tidy
.pm line 5
BEGIN failed--compilation aborted at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12
.B55J2qn-y5sVpz\blib\lib/XML/Tidy.pm line 5.
Compilation failed in require at t\00small.t line 3.
BEGIN failed--compilation aborted at t\00small.t line 3.
t\00small.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 15/15 subtests
t\01medium.t .. Base class package "XML::XPath" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in #INC (#INC contains: C:\xampp\perl\bin\.cpa
n\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib C:\xampp\perl\bin\.cpan\build\XML-
Tidy-1.12.B55J2qn-y5sVpz\blib\arch C:/xampp/perl/lib C:/xampp/perl/site/lib .).
at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib/XML/Tidy
.pm line 5
BEGIN failed--compilation aborted at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12
.B55J2qn-y5sVpz\blib\lib/XML/Tidy.pm line 5.
Compilation failed in require at t\01medium.t line 3.
BEGIN failed--compilation aborted at t\01medium.t line 3.
t\01medium.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 15/15 subtests
t\02large.t ... Base class package "XML::XPath" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in #INC (#INC contains: C:\xampp\perl\bin\.cpa
n\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib C:\xampp\perl\bin\.cpan\build\XML-
Tidy-1.12.B55J2qn-y5sVpz\blib\arch C:/xampp/perl/lib C:/xampp/perl/site/lib .).
at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib/XML/Tidy
.pm line 5
BEGIN failed--compilation aborted at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12
.B55J2qn-y5sVpz\blib\lib/XML/Tidy.pm line 5.
Compilation failed in require at t\02large.t line 3.
BEGIN failed--compilation aborted at t\02large.t line 3.
t\02large.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 15/15 subtests
t\03prune.t ... Base class package "XML::XPath" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in #INC (#INC contains: C:\xampp\perl\bin\.cpa
n\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib C:\xampp\perl\bin\.cpan\build\XML-
Tidy-1.12.B55J2qn-y5sVpz\blib\arch C:/xampp/perl/lib C:/xampp/perl/site/lib .).
at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12.B55J2qn-y5sVpz\blib\lib/XML/Tidy
.pm line 5
BEGIN failed--compilation aborted at C:\xampp\perl\bin\.cpan\build\XML-Tidy-1.12
.B55J2qn-y5sVpz\blib\lib/XML/Tidy.pm line 5.
Compilation failed in require at t\03prune.t line 3.
BEGIN failed--compilation aborted at t\03prune.t line 3.
t\03prune.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 15/15 subtests
Test Summary Report
-------------------
t\00podc.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t\00small.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 15 tests but ran 0.
t\01medium.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 15 tests but ran 0.
t\02large.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 15 tests but ran 0.
t\03prune.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 15 tests but ran 0.
Files=6, Tests=2, 0 wallclock secs ( 0.05 usr + 0.05 sys = 0.09 CPU)
Result: FAIL
Failed 5/6 test programs. 0/2 subtests failed.
PIP/XML-Tidy-1.12.B55J2qn.tgz
C:\xampp\perl\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PIP/XML-Tidy-1.12.B55J2qn.tgz
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
Running Build install
make test had returned bad status, won't install without force
In fact, I haven't been able to install any library (YAML for example). I also tried someone's suggestion:
perl -MCPAN -e "CPAN::Shell->force(qw(XML::Tidy));"
However I had the same outcome. Could someone please help me to figure out how to install those packages? I'm running Perl in a Windows 7 machine.
Fix earlier errors first! XML::Tidy has a stated dependency on Test::Pod::Coverage and XML::XPath. You don't have them installed, so an error must have occurred earlier in the installation process.