Subject: | make test fails and Mouse errors |
Date: | Sun, 18 Oct 2009 16:57:03 -0700 |
To: | bug-MouseX-Getopt [...] rt.cpan.org, gfuji [...] cpan.org, masaki [...] cpan.org |
From: | Tatsuhiko Miyagawa <miyagawa [...] gmail.com> |
First of all make test fails if you run it from CPAN because it puts
Mouse.pm into inc/. Stop doing that.
Also, even if you install it successfully (with force install or from
git repo), I have runtime errors like this.
This has been happening since the last major Mouse update and it's
been broken for almost a month. Care to fix this?
Mouse 0.39
MouseX::Getopt 0.06
Could not load class (Mouse::Meta::Attribute::Custom::Trait::Getopt)
because : Can't locate Mouse/Meta/Attribute/Custom/Trait/Getopt.pm in
@INC (@INC contains: /Users/miyagawa/dev/remedie/bin/../lib
/Users/miyagawa/dev/remedie/bin/../extlib
/Users/miyagawa/dev/remedie/bin/../cpanlib/lib/perl5
/Users/miyagawa/dev/remedie/bin/../cpanlib/lib/perl5/darwin-thread-multi-2level
/Users/miyagawa/perl5/lib/perl5
/Users/miyagawa/perl5/lib/perl5/darwin-thread-multi-2level
/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level
/Library/Perl/Updates/5.8.8
/System/Library/Perl/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/5.8.8
/Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8
/Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level
/Network/Library/Perl/5.8.8 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6
/Library/Perl/5.8.1 .) at
/Users/miyagawa/perl5/lib/perl5/Mouse/Util.pm line 224.
Could not load class (Getopt) because : Can't locate Getopt.pm in @INC
(@INC contains: /Users/miyagawa/dev/remedie/bin/../lib
/Users/miyagawa/dev/remedie/bin/../extlib
/Users/miyagawa/dev/remedie/bin/../cpanlib/lib/perl5
/Users/miyagawa/dev/remedie/bin/../cpanlib/lib/perl5/darwin-thread-multi-2level
/Users/miyagawa/perl5/lib/perl5
/Users/miyagawa/perl5/lib/perl5/darwin-thread-multi-2level
/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level
/Library/Perl/Updates/5.8.8
/System/Library/Perl/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/5.8.8
/Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8
/Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level
/Network/Library/Perl/5.8.8 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6
/Library/Perl/5.8.1 .) at
/Users/miyagawa/perl5/lib/perl5/Mouse/Util.pm line 224.
at /Users/miyagawa/perl5/lib/perl5/Mouse/Util.pm line 201
Mouse::Util::load_first_existing_class('Mouse::Meta::Attribute::Custom::Trait::Getopt',
'Getopt') called at /Users/miyagawa/perl5/lib/perl5/Mouse/Util.pm line
153
Mouse::Util::resolve_metaclass_alias('Attribute', 'Getopt',
'trait', 1) called at
/Users/miyagawa/perl5/lib/perl5/Mouse/Meta/Attribute.pm line 218
Mouse::Meta::Attribute::interpolate_class('Mouse::Meta::Attribute',
'HASH(0x881494)') called at
/Users/miyagawa/perl5/lib/perl5/Mouse/Meta/Class.pm line 128
Mouse::Meta::Class::add_attribute('Mouse::Meta::Class=HASH(0x452964)',
'root', 'traits', 'ARRAY(0xf43760)', 'cmd_aliases', 'r', 'is', 'rw',
'isa', ...) called at /Users/miyagawa/perl5/lib/perl5/Mouse.pm line 52
Mouse::has('root', 'traits', 'ARRAY(0xf43760)', 'cmd_aliases',
'r', 'is', 'rw', 'isa',
'MouseX::Types::TypeDecorator=SCALAR(0x8dcd0c)', ...) called at
/Users/miyagawa/dev/remedie/bin/../lib/Remedie/CLI/Server.pm line 28
require Remedie/CLI/Server.pm called at ./bin/remedie-server.pl line 16
main::BEGIN() called at
/Users/miyagawa/dev/remedie/bin/../lib/Remedie/CLI/Server.pm line 0
eval {...} called at
/Users/miyagawa/dev/remedie/bin/../lib/Remedie/CLI/Server.pm line 0
Compilation failed in require at ./bin/remedie-server.pl line 16.
BEGIN failed--compilation aborted at ./bin/remedie-server.pl line 16.
--
Tatsuhiko Miyagawa