Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

install Module-Build

by zartperl (Initiate)
on Aug 17, 2012 at 16:31 UTC ( [id://988022]=perlquestion: print w/replies, xml ) Need Help??

zartperl has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Module-Build-0.4002.
Host - Linux xxx.net 2.6.18-308.1.1.el5PAE #1 SMP Fri Feb 17 16:55:17 EST 2 +012 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux Server release 5.8 (Tikanga) Perl - # perl -v This is perl, v5.8.8 built for i386-linux-thread-multi
Some Tests fail. Here is the output -

[root@xxx Module-Build-0.4002]# ls bin _build Build Build.PL Changes contrib inc INSTALL lib LIC +ENSE Makefile Makefile.PL MANIFEST META.json META.yml MYMETA.js +on MYMETA.yml README t [root@xxx Module-Build-0.4002]# perl Makefile.PL # running Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Module-Build' version '0.4002' [root@xxx Module-Build-0.4002]# make /usr/bin/perl Build --makefile_env_macros 1 Building Module-Build [root@xxx Module-Build-0.4002]# make test /usr/bin/perl Build --makefile_env_macros 1 test Use of uninitialized value in length at lib/Module/Build/Base.pm line +2767. t/00-compile.t ................. ok t/PL_files.t ................... ok t/actions/installdeps.t ........ ok t/actions/manifest_skip.t ...... ok t/add_property.t ............... ok t/basic.t ...................... 1/58 Use of uninitialized value in le +ngth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base. +pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. t/basic.t ...................... ok t/bundle_inc.t ................. skipped: $ENV{MB_TEST_EXPERIMENTAL} i +s not set t/compat.t ..................... ok t/compat/exit.t ................ ok t/debug.t ...................... ok t/destinations.t ............... ok t/ext.t ........................ ok t/extend.t ..................... ok t/files.t ...................... ok t/help.t ....................... ok t/install.t .................... ok t/install_extra_target.t ....... ok t/manifypods.t ................. ok t/metadata.t ................... 26/53 # Failed test ' with conflicting versions reported' # at t/metadata.t line 278. # '' # doesn't match '(?-xism:already declared)' # Failed test ' with conflicting versions reported' # at t/metadata.t line 297. # '' # doesn't match '(?-xism:already declared)' t/metadata.t ................... 53/53 # Looks like you failed 2 tests + of 53. t/metadata.t ................... Dubious, test returned 2 (wstat 512, +0x200) Failed 2/53 subtests t/metadata2.t .................. ok t/mymeta.t ..................... ok t/new_from_context.t ........... ok t/notes.t ...................... ok t/par.t ........................ ok t/parents.t .................... ok t/perl_mb_opt.t ................ ok t/pod_parser.t ................. ok t/ppm.t ........................ ok t/properties/dist_suffix.t ..... ok t/properties/license.t ......... ok t/properties/module_name.t ..... ok t/properties/needs_compiler.t .. ok t/properties/release_status.t .. ok t/properties/requires.t ........ ok t/properties/share_dir.t ....... ok t/resume.t ..................... ok t/runthrough.t ................. 1/29 Use of uninitialized value in le +ngth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base. +pm line 2767. t/runthrough.t ................. ok t/sample.t ..................... ok t/script_dist.t ................ ok t/signature.t .................. ok t/test_file_exts.t ............. 1/3 Use of uninitialized value in len +gth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base.p +m line 2767. t/test_file_exts.t ............. ok t/test_type.t .................. 1/7 Use of uninitialized value in len +gth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base.p +m line 2767. t/test_type.t .................. 2/7 Use of uninitialized value in len +gth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base.p +m line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. t/test_type.t .................. ok t/test_types.t ................. 1/25 Use of uninitialized value in le +ngth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base. +pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. Use of uninitialized value in length at /opt/perltemp/Module-Build-0.4 +002/blib/lib/Module/Build/Base.pm line 2767. t/test_types.t ................. ok t/tilde.t ...................... ok t/use_tap_harness.t ............ ok t/versions.t ................... ok t/write_default_maniskip.t ..... ok t/xs.t ......................... 18/? Use of uninitialized value in le +ngth at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base. +pm line 2767. t/xs.t ......................... ok Test Summary Report ------------------- t/metadata.t (Wstat: 512 Tests: 53 Failed: 2) Failed tests: 28, 30 Non-zero exit status: 2 Files=48, Tests=1159, 85 wallclock secs ( 0.42 usr 0.10 sys + 72.67 c +usr 12.28 csys = 85.47 CPU) Result: FAIL Failed 1/48 test programs. 2/1159 subtests failed. make: *** [test] Error 255 [root@xxx Module-Build-0.4002]#

It says something about conflicting versions. I have only one version of Perl on this box. Any ideas ?

Replies are listed 'Best First'.
Re: install Module-Build
by pileofrogs (Priest) on Aug 17, 2012 at 16:51 UTC
    # Failed test ' with conflicting versions reported' # at t/metadata.t line 278. # '' # doesn't match '(?-xism:already declared)'

    Looks to me like it was expecting a value that was undefined. I also see lots of references to "uninitialized value in length at /opt/perltemp/Module-Build-0.4002/blib/lib/Module/Build/Base.pm line 2767."

    If I was you, I'd look at that Base.pm file at line 2767 and find out what it's expecting that it's not getting.

      I checked 'Base.PM' and 'metadata.t' file. Didn't find anything out of the ordinary. As a temporary fix, i forced the install using this command -
      perl -MCPAN -e "CPAN::Shell->force(qw(install Module::Build));"
      But i will go back to 'Base.PM' and get more info later.
Re: install Module-Build
by ig (Vicar) on Aug 17, 2012 at 19:36 UTC

    The error you are seeing from t/metadata.t may relate to Module::Metadata. I am running Strawberry Perl 5.12.3.0 on Windows. After a fresh install of Strawberry Perl, Module::Build installs successfully but after installing Module::Metadata from CPAN, I get the same errors as you on test t/metadata.t

    Strawberry Perl 5.12.3.0 provides Module::Metadata version 1.000004 and CPAN provides version 1.000011.

Re: install Module-Build
by ig (Vicar) on Aug 17, 2012 at 18:00 UTC

    I wonder if you would have a different outcome if you tried to install with:

    perl Build.PL ./Build ./Build test ./Build install
Re: install Module-Build
by Anonymous Monk on Aug 17, 2012 at 19:38 UTC

    Some Tests fail.

    Ignore it!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://988022]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found