String::ToIdentifier::EN 测试可能存在什么问题?

String::ToIdentifier::EN 测试可能存在什么问题?

我尝试安装 Perl 模块String::ToIdentifier::EN(作为 的依赖项DBIx::Class::Schema::Loader),但测试失败。我在 Google 上搜索了这些错误,但没有找到图片,问题出在哪里:

Building and testing String-ToIdentifier-EN-0.07
cp lib/String/ToIdentifier/EN.pm blib/lib/String/ToIdentifier/EN.pm
cp lib/String/ToIdentifier/EN/Unicode.pm blib/lib/String/ToIdentifier/EN/Unicode.pm
Manifying blib/man3/String::ToIdentifier::EN.3pm
Manifying blib/man3/String::ToIdentifier::EN::Unicode.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00_basic.t t/10_ascii.t t/20_capitalization.t
Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380, at /home/wanradt/perl5/lib/perl5/Lingua/EN/Tagger.pm line 167
# Looks like you planned 25 tests but ran 4.
# Looks like your test exited with 25 just after 4.
t/00_basic.t ........... 
Dubious, test returned 25 (wstat 6400, 0x1900)
Failed 21/25 subtests 
Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380, at /home/wanradt/perl5/lib/perl5/Lingua/EN/Tagger.pm line 167
# Looks like you planned 768 tests but ran 512.
# Looks like your test exited with 25 just after 512.
t/10_ascii.t ........... 
Dubious, test returned 25 (wstat 6400, 0x1900)
Failed 256/768 subtests 
t/20_capitalization.t .. ok

Test Summary Report
-------------------
t/00_basic.t         (Wstat: 6400 Tests: 4 Failed: 0)
Non-zero exit status: 25
Parse errors: Bad plan.  You planned 25 tests but ran 4.
t/10_ascii.t         (Wstat: 6400 Tests: 512 Failed: 0)
Non-zero exit status: 25
Parse errors: Bad plan.  You planned 768 tests but ran 512.
Files=3, Tests=528,  1 wallclock secs ( 0.07 usr  0.02 sys +  0.42 cusr  0.04 csys =  0.55 CPU)
Result: FAIL
Failed 2/3 test programs. 0/528 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing String::ToIdentifier::EN failed. See /home/wanradt/.cpanm/build.log for details.

Byte order is not compatible at...似乎是一把钥匙,但是钥匙在哪里呢?

答案1

我在 64 位系统中看到过类似的错误(String::ToIdentifier::EN但不是),其中一个企业级商业应用程序(我不会在这里命名)用 32 位版本的 Perl 覆盖了 RHEL 提供的 64 位 Perl 安装。

当尝试从 CPAN 获取某些内容时,这会导致各种奇怪的副作用……我对此感到很不开心。因此,如果您使用的是 64 位操作系统,请尝试file /usr/bin/perl查看它返回的内容。

答案2

我不确定哪里出了问题,但解决方案是删除本地(在用户基础上)的 Perl 模块包并重新安装它们。

相关内容