I'm getting the same error on Mac OS X 10.7.3 with Perl 5.14.2 after attempting to install for
the first time (using cpan). I'm also using perlbrew.
cpan[15]> install MooseX::Method::Signatures
Running install for module 'MooseX::Method::Signatures'
Running make for I/IL/ILMARI/MooseX-Method-Signatures-0.37.tar.gz
Has already been unwrapped into directory /Users/ken/.cpan/build/MooseX-Method-
Signatures-0.37-ysB4z3
Has already been made
Running make test
PERL_DL_NONLAZY=1 /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/bin/perl "-
MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t .......................... ok
t/attributes.t ....................... ok
t/author-pod.t ....................... skipped: these tests are for testing by the author
t/author-transactional-authorized.t .. skipped: these tests are for testing by the author
t/basic.t ............................ ok
t/caller.t ........................... ok
t/closure.t .......................... ok
t/declarators.t ...................... ok
t/errors.t ........................... 1/?
# Failed test 'Sane error message for syntax error'
# at t/errors.t line 11.
# 'Failed to compile source: Compilation error
#
# source:
# sub { ( do { do {my $check = $_[0];ref($check) eq "ARRAY" && &List::MoreUtils::all(sub { ( do
{ 1 } ) }, @{$check})} } ) } at /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/
site_perl/5.14.2/darwin-thread-multi-2level/Moose/Meta/TypeConstraint.pm line 320
# Compilation failed in require at (eval 10) line 1.
# BEGIN failed--compilation aborted at (eval 10) line 1.
# '
# doesn't match '(?^:^Global symbol "\$op" requires explicit package name at .*?
\bInvalidCase01.pm line 8\b)'
# Looks like you failed 1 test of 4.
t/errors.t ........................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/eval.t ............................. ok
t/list.t ............................. ok
t/meta.t ............................. ok
t/method-trait.t ..................... ok
t/named_defaults.t ................... ok
t/no_signature.t ..................... ok
t/placeholders.t ..................... ok
t/precedence.t ....................... ok
t/quoted_name.t ...................... ok
t/release-eol.t ...................... skipped: these tests are for release candidate testing
t/release-no-tabs.t .................. skipped: these tests are for release candidate testing
t/release-pod-syntax.t ............... skipped: these tests are for release candidate testing
t/return_value.t ..................... ok
t/signatures.t ....................... ok
t/sigs-optional.t .................... ok
t/structured.t ....................... ok
t/synopsis.t ......................... ok
t/too_many_args.t .................... ok
t/traits.t ........................... ok
t/type_alias.t ....................... ok
t/types.t ............................ ok
t/undef_method_arg.t ................. ok
t/where.t ............................ ok
Test Summary Report
-------------------
t/errors.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=32, Tests=262, 21 wallclock secs ( 0.13 usr 0.07 sys + 18.14 cusr 1.11 csys = 19.45
CPU)
Result: FAIL
Failed 1/32 test programs. 1/262 subtests failed.
make: *** [test_dynamic] Error 255
ILMARI/MooseX-Method-Signatures-0.37.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ILMARI/MooseX-Method-Signatures-0.37.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
ILMARI/MooseX-Method-Signatures-0.37.tar.gz : make_test NO
cpan[20]> reports ILMARI/MooseX-Method-Signatures-0.37.tar.gz
Distribution: I/IL/ILMARI/MooseX-Method-Signatures-0.37.tar.gz
Fetching '
http://www.cpantesters.org/show/MooseX-Method-Signatures.yaml'...DONE
Catching error: "CPAN::Exception::yaml_process_error=HASH(0x7ff7cb166600)" at /Users/ken/
perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2/CPAN.pm line 392
CPAN::shell() called at /Users/ken/perl5/perlbrew/perls/
perl-5.14.2_WITH_THREADS/lib/5.14.2/App/Cpan.pm line 295
App::Cpan::_process_options('App::Cpan') called at /Users/ken/perl5/perlbrew/perls/
perl-5.14.2_WITH_THREADS/lib/5.14.2/App/Cpan.pm line 364
App::Cpan::run('App::Cpan') called at /Users/ken/perl5/perlbrew/perls/
perl-5.14.2_WITH_THREADS/bin/cpan line 11
Versions:
cpan 1.57
App::perlbrew 0.30
Eval::Closure 0.08
Moose 2.0402
Moose::Meta::TypeConstraint 2.0402
$ uname -a
Darwin ganymede 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012;
root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
$ perl -V
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
osname=darwin, osvers=11.3.0, archname=darwin-thread-multi-2level
uname='darwin ganymede 11.3.0 darwin kernel version 11.3.0: thu jan 12 18:47:41 pst
2012; root:xnu-1699.24.23~1release_x86_64 x86_64 '
config_args='-de -Dprefix=/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS -
Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-
protector -I/usr/local/include -I/opt/local/include',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/
usr/local/include -I/opt/local/include'
ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/
lib -L/opt/local/lib'
libpth=/usr/local/lib /opt/local/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/
lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under darwin
Compiled at Feb 16 2012 16:58:49
%ENV:
PERL5LIB="/Users/ken/local/lib/perl"
PERLBREW_BASHRC_VERSION="0.30"
PERLBREW_HOME="/Users/ken/.perlbrew"
PERLBREW_PATH="/Users/ken/perl5/perlbrew/bin:/Users/ken/perl5/perlbrew/perls/
perl-5.14.2_WITH_THREADS/bin"
PERLBREW_PERL="perl-5.14.2_WITH_THREADS"
PERLBREW_ROOT="/Users/ken/perl5/perlbrew"
PERLBREW_VERSION="0.30"
@INC:
/Users/ken/local/lib/perl
/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/site_perl/5.14.2/darwin-
thread-multi-2level
/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/site_perl/5.14.2
/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2/darwin-thread-
multi-2level
/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2
.