我正在尝试升级到Moose的最新版本,但我得到了许多测试失败。
所有这些错误似乎都与元类有关。我还尝试安装了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如果有人可以建议在哪里解决这个错误,或者我可以提供哪些其他信息来帮助诊断它?我在谷歌上搜索什么也没找到。
发布于 2012-09-06 15:10:47
这个问题现在已经解决了,因为它是我以前遇到过的一个bug,但我忘记了。
我复制了一个旧的.bashrc到这个盒子里,忘记了这一点:
echo $PERL5LIB
lib:t/libt/lib位以前在其他模块上导致我的安装失败,我应该记住这一点。
https://stackoverflow.com/questions/12277113
复制相似问题