I run on Mac OS X 10.5 and I want to write a program in Perl. However, I need to install the module RDF::Trine and DBD::CSV and I got an error when I install both.
If I write :
install RDF::Trine
The error is :
Files=51, Tests=5, 2 wallclock secs ( 0.21 usr 0.18 sys + 1.30 cusr 0.51 csys = 2.20 CPU)
Result: FAIL
Failed 49/51 test programs. 5/5 subtests failed.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
And the error for the installation of DBD::CSV is :
Files=21, Tests=18, 1 wallclock secs ( 0.10 usr 0.08 sys + 0.85 cusr 0.26 csys = 1.29 CPU)
Result: FAIL
Failed 16/21 test programs. 2/18 subtests failed.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Do you have a solution for me?
Can you post the output of:
cpan RDF::Trine
or even
cpan Bundle::CPAN
A LOT of perl developers develop on MacOS. I'd be surprised if it didn't work out of the box.
Updated, easier to read cpan output here than in a comment. It looks like your cpan is set to ignore dependencies:
---- Unsatisfied dependencies detected during ----
---- GWILLIAMS/RDF-Trine-0.125.tar.gz ----
Text::Table [requires]
DBD::SQLite [requires]
XML::LibXML::SAX [requires]
Unicode::Escape [requires]
Unicode::String [requires]
Text::CSV [requires]
Error [requires]
Test::Exception [requires]
Test::JSON [requires]
XML::Namespace [requires]
Data::UUID [requires]
Math::Combinatorics [requires]
Set::Scalar [requires]
XML::CommonNS [requires]
XML::LibXML [requires]
JSON [requires]
Log::Log4perl [requires]
Ignoring dependencies on modules ARRAY(0x4d22268), ARRAY(0x5463770), ARRAY(0x4d1bbe4), ARRAY(0x4d22724), ARRAY(0x4d21fc8), ARRAY(0x4d226c4), ARRAY(0x4d21fa4), ARRAY(0x5463830), ARRAY(0x5463878), ARRAY(0x4d24cf0), ARRAY(0x4d22784), ARRAY(0x4d21f74), ARRAY(0x4d21f5c), ARRAY(0x4d21e3c), ARRAY(0x4d21ee4), ARRAY(0x4d21d4c), ARRAY(0x4d21e84), ARRAY(0x4d21c80), ARRAY(0x4d21efc), ARRAY(0x4d2219c), ARRAY(0x4d21fb0), ARRAY(0x4d2213c), ARRAY(0x4d21ddc), ARRAY(0x4d2264c), ARRAY(0x4d21ed8), ARRAY(0x5463818), ARRAY(0x4d21d94), ARRAY(0x4d22640), ARRAY(0x4d21de8), ARRAY(0x4d1bb00), ARRAY(0x4d21c98), ARRAY(0x4d2225c), ARRAY(0x4d21f68), ARRAY(0x4d22334)
prerequisites_policy is the configuration variable that controls this behavior.
Confirm the setting by running o conf prerequisites_policy and if it's set to anything other than ask, run:
o conf prerequisites_policy ask
o conf commit
(Those are lowercase letter "oh")
Then repeat your cpan commands.
You can install perl module forcefully
perl –MCPAN –e’force install “RDF::Trine”’
Where RDF::Trine is the module name
Related
I am trying to install Chart::Plotly ( https://metacpan.org/pod/Chart::Plotly) using Strawberry Perl 5.28 and get the below error
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Chart-Plotly' version '0.039'
PABLROD/Chart-Plotly-0.039.tar.gz
C:\Strawberry\perl\bin\perl.exe Build.PL -- OK
Running Build for P/PA/PABLROD/Chart-Plotly-0.039.tar.gz
---- Unsatisfied dependencies detected during ----
---- PABLROD/Chart-Plotly-0.039.tar.gz ----
Devel::IPerl [requires,optional]
PDL [build_requires]
Params::Validate [requires]
Ref::Util [requires]
UUID::Tiny [requires]
Running install for module 'PDL'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\E\ET\ETJ\PDL-2.021.tar.gz ok
Couldn't move C:\STRAWB~1\cpan\build\tmp-20036\PDL-2.021\Graphics to C:\STRAWB~1\cpan\build\PDL-2.021-0\Graphics: No such file or directory; #82295? CPAN::VERSION=2.20; File::Copy::VERSION=2.33; C:\STRAWB~1\cpan\build\tmp-20036\PDL-2.021\Graphics exists; C:\STRAWB~1\cpan\build\PDL-2.021-0\Graphics does not exist; cwd=C:/STRAWB~1/cpan/build/tmp-20036;
Any Idea how to fix it?
I'm trying to install Tkx on my Mac, with Perl 5.16.0 under perlbrew. Keep getting this error:
Test Summary Report
-------------------
t/tcl.t (Wstat: 0 Tests: 18 Failed: 1)
Failed test: 18
Files=8, Tests=54, 8 wallclock secs ( 0.04 usr 0.02 sys + 1.58 cusr 0.83 csys = 2.47 CPU)
Result: FAIL
Failed 1/8 test programs. 1/54 subtests failed.
make: *** [test_dynamic] Error 255
GAAS/Tkx-1.09.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GAAS/Tkx-1.09.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
GAAS/Tkx-1.09.tar.gz : make_test NO
When I execute reports GAAS/Tkx-1.09.tar.gz (inside the CPAN shell) I get this:
Distribution: G/GA/GAAS/Tkx-1.09.tar.gz
Fetching 'http://www.cpantesters.org/show/Tkx.yaml'...DONE
Catching error: "CPAN::Exception::yaml_process_error=HASH(0x7fb392b404b8)" at /Users/daryl/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN.pm line 392.
CPAN::shell() called at -e line 1
Early in this process, I noticed that in the directory ~/.cpan/sources/authors/id about half the directories were owned by root, the others by me. I did "chown -R $USER" at the .cpan level and all my other installs have been okay. Also, "install Tk" succeeded; I guess I can revert to Tk but I really wanted to try Tkx. So much so that I ran "notest install Tk". I'm sure I'll run into an issue soon, so if there is an answer to this problem, I'd love to hear it.
Tkx was last released ten years ago and has twice as many FAIL as PASS reports in CPAN Testers. I don't think you really want to try Tkx unless you have the gumption and time to fix it yourself.
This really isn't an issue with CPAN or the cpan client. Your next step is to try to install it by hand and see what the output is. Then investigate what that test is doing to see why it fails.
I recently adopted Tkx and published release 1.10, which allows installation to proceed despite the t/tcl.t test 18 failure.
This test failure had been reported at RT #115662 and several other places. It appears to have been caused by unexpected but minor changes to error message formatting in newer Tcl.pm. Pending the issue actually being fixed, it is not something which Tkx should abort installation over.
I tried to install Tkx on macOS Catalina, perlbrew with perl version 5.30.1 Running cpanm Tkx fails with the package Tcl. It is the tests for the package Tcl that fails (first): failed 20/20 test programs. 0/0 subtests failed.:
"/Users/hakonhaegland/perl5/perlbrew/perls/perl-5.30.1/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tcl.bs blib/arch/auto/Tcl/Tcl.bs 644
PERL_DL_NONLAZY=1 "/Users/hakonhaegland/perl5/perlbrew/perls/perl-5.30.1/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/call.t .............
No subtests run
t/constants.t ........
No subtests run
t/createcmd.t ........
No subtests run
t/disposal-subs-a.t ..
No subtests run
t/disposal-subs-b.t ..
No subtests run
t/disposal-subs-c.t ..
No subtests run
t/disposal-subs-d.t ..
No subtests run
t/disposal-subs-e.t ..
No subtests run
t/disposal-subs-f.t ..
No subtests run
t/disposal-subs.t ....
No subtests run
t/eval.t .............
No subtests run
t/export_to_tcl.t ....
Failed 4/4 subtests
t/info.t .............
[...]
Files=20, Tests=0, 2 wallclock secs ( 0.07 usr 0.05 sys + 0.39 cusr 0.17 csys = 0.68 CPU)
Result: FAIL
Failed 20/20 test programs. 0/0 subtests failed.
If I download the distribution and run one of the tests manually, I get a segfault:
$ perl -Iblib/lib -Iblib/arch t/call.t
[1] 66551 segmentation fault perl -Iblib/lib -Iblib/arch t/call.t
See also this bug report.
Hel lo, I'm actually trying to install a perl package called HMMCleaner
I ran for that the command:
cpan Bio::MUST::Apps::HmmCleaner
but during the process I got several messages telling : Warning: prerequisite something 0 not found.
Here is a head of the output :
(/beegfs/data/me/myconda) me#pbil-deb:/beegfs/data/me/TOOLS/Bio-MUST-Apps-HmmCleaner-0.180750/bin$ cpan Test::Harness::Straps
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/beegfs/home/me/.cpan/Metadata'
Database was generated on Fri, 14 Feb 2020 09:41:03 GMT
Running install for module 'Test::Harness::Straps'
Fetching with LWP:
http://www.cpan.org/authors/id/M/MS/MSCHWERN/Test-Harness-Straps-0.30.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/M/MS/MSCHWERN/CHECKSUMS
Checksum for /beegfs/home/me/.cpan/sources/authors/id/M/MS/MSCHWERN/Test-Harness-Straps-0.30.tar.gz ok
Configuring M/MS/MSCHWERN/Test-Harness-Straps-0.30.tar.gz with Build.PL
Test::Harness::Straps is provided for backwards compatibility only.
No further development is planned. No bugs will be fixed.
For customizable TAP parsing please use L<TAP::Parser> instead.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Test-Harness-Straps' version '0.30'
MSCHWERN/Test-Harness-Straps-0.30.tar.gz
/beegfs/data/me/myconda/bin/perl Build.PL --installdirs site -- OK
Running Build for M/MS/MSCHWERN/Test-Harness-Straps-0.30.tar.gz
Building Test-Harness-Straps
MSCHWERN/Test-Harness-Straps-0.30.tar.gz
./Build -- OK
Running Build test
t/00compile.t ...... 1/5 # Testing Test::Harness::Straps 0.30 under Perl 5.026002 and Test::More 1.302073
t/00compile.t ...... ok
t/callback.t ....... ok
t/point-parse.t .... ok
t/point.t .......... ok
t/strap-analyze.t .. ok
t/strap.t .......... ok
All tests successful.
Files=6, Tests=425, 9 wallclock secs ( 0.12 usr 0.04 sys + 0.98 cusr 0.67 csys = 1.81 CPU)
Result: PASS
MSCHWERN/Test-Harness-Straps-0.30.tar.gz
./Build test -- OK
Running Build install
Building Test-Harness-Straps
Installing /beegfs/home/me/perl5/lib/perl5/Test/Harness/Assert.pm
Installing /beegfs/home/me/perl5/lib/perl5/Test/Harness/Straps.pm
Installing /beegfs/home/me/perl5/lib/perl5/Test/Harness/Results.pm
Installing /beegfs/home/me/perl5/lib/perl5/Test/Harness/Point.pm
Installing /beegfs/home/me/perl5/lib/perl5/Test/Harness/Iterator.pm
Installing /beegfs/home/me/perl5/man/man3/Test::Harness::Point.3
Installing /beegfs/home/me/perl5/man/man3/Test::Harness::Assert.3
Installing /beegfs/home/me/perl5/man/man3/Test::Harness::Results.3
Installing /beegfs/home/me/perl5/man/man3/Test::Harness::Iterator.3
Installing /beegfs/home/me/perl5/man/man3/Test::Harness::Straps.3
MSCHWERN/Test-Harness-Straps-0.30.tar.gz
./Build install -- OK
(/beegfs/data/me/myconda) me#pbil-deb:/beegfs/data/me/TOOLS/Bio-MUST-Apps-HmmCleaner-0.180750/bin$ cpan Bio::MUST::Apps::HmmCleaner
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/beegfs/home/me/.cpan/Metadata'
Database was generated on Fri, 14 Feb 2020 09:41:03 GMT
Running install for module 'Bio::MUST::Apps::HmmCleaner'
Checksum for /beegfs/home/me/.cpan/sources/authors/id/A/AR/ARNODF/Bio-MUST-Apps-HmmCleaner-0.180750.tar.gz ok
Configuring A/AR/ARNODF/Bio-MUST-Apps-HmmCleaner-0.180750.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Bio::FastParsers::Hmmer 0 not found.
Warning: prerequisite Bio::MUST::Core 0.180230 not found.
Warning: prerequisite Bio::MUST::Core::Ali 0 not found.
Warning: prerequisite Bio::MUST::Core::Constants 0 not found.
Warning: prerequisite Bio::MUST::Core::GeneticCode::Factory 0 not found.
Warning: prerequisite Bio::MUST::Core::IdList 0 not found.
Warning: prerequisite Bio::MUST::Core::Seq 0 not found.
Warning: prerequisite Bio::MUST::Core::SeqMask 0 not found.
Warning: prerequisite Bio::MUST::Core::Utils 0 not found.
Warning: prerequisite Bio::MUST::Drivers 0.180270 not found.
Warning: prerequisite Bio::MUST::Drivers::Hmmer::Model::Temporary 0 not found.
Warning: prerequisite IPC::System::Simple 0 not found.
Warning: prerequisite Smart::Comments 0 not found.
Warning: prerequisite aliased 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Bio::MUST::Apps::HmmCleaner
Writing MYMETA.yml and MYMETA.json
ARNODF/Bio-MUST-Apps-HmmCleaner-0.180750.tar.gz
/beegfs/data/me/myconda/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for A/AR/ARNODF/Bio-MUST-Apps-HmmCleaner-0.180750.tar.gz
---- Unsatisfied dependencies detected during ----
---- ARNODF/Bio-MUST-Apps-HmmCleaner-0.180750.tar.gz ----
Bio::FastParsers::Hmmer [requires]
Bio::MUST::Core [requires]
Bio::MUST::Core::Ali [requires]
Bio::MUST::Core::Constants [requires]
Bio::MUST::Core::GeneticCode::Factory [requires]
Bio::MUST::Core::IdList [requires]
Bio::MUST::Core::Seq [requires]
Bio::MUST::Core::SeqMask [requires]
Bio::MUST::Core::Utils [requires]
Bio::MUST::Drivers [requires]
Bio::MUST::Drivers::Hmmer::Model::Temporary [requires]
IPC::System::Simple [requires]
Smart::Comments [requires]
aliased [requires]
Running install for module 'Bio::FastParsers::Hmmer'
Checksum for /beegfs/home/me/.cpan/sources/authors/id/D/DB/DBAURAIN/Bio-FastParsers-0.180470.tar.gz ok
Configuring D/DB/DBAURAIN/Bio-FastParsers-0.180470.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Const::Fast 0 not found.
Warning: prerequisite Exporter::Easy 0 not found.
Warning: prerequisite Smart::Comments 0 not found.
Warning: prerequisite XML::Bare 0.53 not found.
Warning: prerequisite aliased 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Bio::FastParsers
Writing MYMETA.yml and MYMETA.json
DBAURAIN/Bio-FastParsers-0.180470.tar.gz
/beegfs/data/me/myconda/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for D/DB/DBAURAIN/Bio-FastParsers-0.180470.tar.gz
---- Unsatisfied dependencies detected during ----
---- DBAURAIN/Bio-FastParsers-0.180470.tar.gz ----
Const::Fast [requires]
Exporter::Easy [requires]
Smart::Comments [requires]
XML::Bare [requires]
aliased [requires]
Running install for module 'Const::Fast'
So I wondered if there were a possibility to direclty allow cpan to install all the dependency needed?
I ask because I get the following error message when trying to execute a script using Bio::MUST::Apps::HMMCleaner.
Can't locate Smart/Comments.pm in #INC (you may need to install the Smart::Comments module) (#INC contains:
/beegfs/home/me/perl5/lib/perl5/x86_64-linux-thread-multi
/beegfs/home/me/perl5/lib/perl5
/beegfs/data/me/myconda/lib/site_perl/5.26.2/x86_64-linux-thread-multi
/beegfs/data/me/myconda/lib/site_perl/5.26.2
/beegfs/data/me/myconda/lib/5.26.2/x86_64-linux-thread-multi
/beegfs/data/me/myconda/lib/5.26.2
.
) at HmmCleaner.pl line 16. BEGIN failed--compilation aborted at HmmCleaner.pl line 16.
(Line breaks added for readability.)
Some debugging information:
$ set | grep ^PERL
PERL5LIB=/beegfs/home/me/perl5/lib/perl5
PERL_LOCAL_LIB_ROOT=/beegfs/home/me/perl5
PERL_MB_OPT='--install_base "/beegfs/home/me/perl5"'
PERL_MM_OPT=INSTALL_BASE=/beegfs/home/me/perl5
$ echo 'o conf' | cpan | grep -P '^\s*(make|mbuild)'
Loading internal null logger. Install Log::Log4perl for logging messages
make [/usr/bin/X11/make]
make_arg []
make_install_arg []
make_install_make_command [/usr/bin/X11/make]
makepl_arg [INSTALLDIRS=site]
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg [--installdirs site]
$ which cpan
/beegfs/data/me/myconda/bin/cpan
$ head -n 1 "$( which cpan )"
#!/beegfs/data/me/myconda/bin/perl
$ which perl
/beegfs/data/me/myconda/bin/perl
$ cpan Smart::Comments
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/beegfs/home/me/.cpan/Metadata'
Database was generated on Fri, 14 Feb 2020 09:41:03 GMT
Running install for module 'Smart::Comments'
Checksum for /beegfs/home/me/.cpan/sources/authors/id/N/NE/NEILB/Smart-Comments-1.06.tar.gz ok
Configuring N/NE/NEILB/Smart-Comments-1.06.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Smart::Comments
Writing MYMETA.yml and MYMETA.json
NEILB/Smart-Comments-1.06.tar.gz
/beegfs/data/me/myconda/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for N/NE/NEILB/Smart-Comments-1.06.tar.gz
cp lib/Smart/Comments.pm blib/lib/Smart/Comments.pm
Manifying 1 pod document
NEILB/Smart-Comments-1.06.tar.gz
/usr/bin/X11/make -- OK
Running make test
PERL_DL_NONLAZY=1 "/beegfs/data/me/myconda/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00.load.t ................. 1/1 # Testing Smart::Comments 1.06
t/00.load.t ................. ok
t/assert.t .................. ok
t/brackets.t ................ ok
t/c_like_for_loop.t ......... ok
t/check.t ................... ok
t/confirm.t ................. ok
t/ensure.t .................. ok
t/ENV_0.t ................... ok
t/ENV_1.t ................... ok
t/ENV_str.t ................. ok
t/insist.t .................. ok
t/labelled_perlish_loop.t ... ok
t/message.t ................. ok
t/perlish_for.t ............. ok
t/perlish_for_percentage.t .. ok
t/pod-coverage.t ............ skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ..................... skipped: Test::Pod 1.14 required for testing POD
t/require.t ................. ok
t/selective.t ............... ok
t/simple_perlish_for.t ...... ok
t/var.t ..................... ok
t/verify.t .................. ok
t/while.t ................... ok
t/while_num.t ............... ok
All tests successful.
Files=24, Tests=119, 19 wallclock secs ( 0.13 usr 0.08 sys + 2.93 cusr 1.45 csys = 4.59 CPU)
Result: PASS
NEILB/Smart-Comments-1.06.tar.gz
/usr/bin/X11/make test -- OK
Running make install
Manifying 1 pod document
Installing /beegfs/home/me/perl5/lib/perl5/Smart/Comments.pm
Installing /beegfs/home/me/perl5/man/man3/Smart::Comments.3
Appending installation info to /beegfs/home/me/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
NEILB/Smart-Comments-1.06.tar.gz
/usr/bin/X11/make install -- OK
$ perl -e'use Smart::Comments; print "ok\n"'
ok
Thank you for your help.
That's exactly what it does.
For example, Warning: prerequisite Bio::FastParsers::Hmmer 0 not found. means an unsatisfied dependency for version 0 or higher of the Bio::FastParsers::Hmmer module was encountered. The Bio::MUST::Apps::HmmCleaner module is provided by the Bio-FastParsers distribution, and you can clearly see Bio-FastParsers being installed.
Technically, this is configurable.
$ echo 'o conf init prerequisites_policy' | cpan
...
The CPAN module can detect when a module which you are trying to build
depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Choosing
'follow' also sets PERL_AUTOINSTALL and PERL_EXTUTILS_AUTOINSTALL for
"--defaultdeps" if not already set.
Please set your policy to one of the three values.
<prerequisites_policy>
Policy on building prerequisites (follow, ask or ignore)? [follow] follow
...
But the default value is follow, and your output shows if it's following dependencies.
I have installed ActivePerl in order to run a bioinformatic tool.
after running the tool on Windows PowerShell I got this message:
Perl module Archive::Extract (in core since 2007-07-07) is not installed on this machine!
Perl modules are available for download at http://www.cpan.org/
If you have CPAN installed try the following: cpan install
Archive::Extract exit
If you are on Mac or Unix you should run cpan with sudo: sudo cpan
install Archive::Extract exit
So I tried to install it:
cpan
install Archive::Extract
and got this:
"C:\Perl64\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/.t
t/01_Archive-Extract.t .. # Older versions of Archive::Zip may cause File::Spec warnings
See bug #19713 in rt.cpan.org. It is safe to ignore them
t/01_Archive-Extract.t .. 87/?
As I'm not adept at this I thought that I should try to install again the Archive::Zip
install Archive::Zip
but I got :
t/25_traversal.t .............. 1/41
Failed test 'Tree extraction aborted'
at t/25_traversal.t line 97.
got: '0'
expected: '2'
Looks like you failed 1 test of 41.
t/25_traversal.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/41 subtests
(less 32 skipped subtests: 8 okay)
Test Summary Report
t/25_traversal.t (Wstat: 256 Tests: 41 Failed: 1)
Failed test: 16
Non-zero exit status: 1
Files=25, Tests=346, 18 wallclock secs ( 0.19 usr + 0.13 sys = 0.31 CPU)
Result: FAIL
Failed 1/25 test programs. 1/346 subtests failed.
dmake.exe: Error code 129, while making 'test_dynamic'
Could you please explain what's the particular problem in order to understand it and how can I solve it?
I don't know if it's a naive question as I have just started learning about command line tools, Linux, Perl etc.
Active Perl uses the ppm script to install modules, mixing this with cpan can cause the problems you have seen above. You may find that using Strawberry Perl works better for you as this comes with a c compiler that will allow you to install non pure Perl modules from cpan
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.