驼鹿测试失败

时间:2012-09-05 08:09:55

标签: perl testing moose

我正在尝试升级到最新版本的Moose,但我遇到了很多测试失败。

所有这些错误都与metaclasses有关。我也尝试安装2.0402(这是我们在本地镜像上的内容)并得到相同的错误。例如:

t/cmop/rebless_with_extra_params.t ............................ 
   Foo already has a metaclass, but it does not inherit Moose::Meta::Class
   (Class::MOP::Class=HASH(0x2be2070)). 
   at /home/cpoe/Downloads/Moose-2.0603/blib/lib/Moose.pm line 170.

I've posted a gist of the full make test output

我正在做标准“perl Makefile.PL; make; make test”。

$ perl -v

This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux

如果有人可以建议在哪里寻找解决此错误,或者我可以提供哪些其他信息来帮助诊断它?我在Google上的搜索结果没有任何结果。

1 个答案:

答案 0 :(得分:0)

此问题现已解决,因为它是我以前遇到过的一个错误,但忘了。

我已经将一个旧.bashrc复制到此框中并忘记了这一点:

echo $PERL5LIB
lib:t/lib

t/lib位之前在我的其他模块上导致了安装失败,我应该记住这一点。

相关问题