Я пытаюсь установить модуль Perl String::ToIdentifier::EN
(как зависимость от DBIx::Class::Schema::Loader
), но не проходит тесты. Я погуглил эти ошибки, но не понял, в чем проблема:
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...
кажется ключом, но куда?
Я видел похожие ошибки (не с String::ToIdentifier::EN
хотя) в 64-битных системах, где коммерческое приложение корпоративного уровня, которое я не собираюсь называть здесь, перезаписало RHEL, предоставленную для 64-битной установки Perl с 32-битной версией Perl.
Это вызвало всевозможные забавные побочные эффекты при попытке получить что-то из CPAN ... Мне это не очень понравилось. Итак, если у вас 64-битная ОС, попробуйте file /usr/bin/perl
и посмотрите, что он вернет.
Я не уверен, что пошло не так, но решение заключалось в том, чтобы удалить локальный (в пользовательской базе) пакет модулей Perl и установить их снова.