现在几个小时,我一直在尝试安装MediaWiki :: Bot模块,这样我就可以回到我心爱的Perl和shell了。
然而,这永远不会奏效。
我是否尝试手动安装(perl Makefile.pl
,make
,make test
)或cpan
(有或没有sudo
),我得到同样的结果大量错误和测试失败消息。
它开始了:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ................. ok
t/00-init.t .................... 1/5 #
t/00-init.t .................... ok
t/01-api_error.t ............... 1/5
# Failed test 'The right error code is there'
# at t/01-api_error.t line 18.
# got: '2'
# expected: '3'
# Failed test 'The API error text was returned'
# at t/01-api_error.t line 20.
# '500 Can't connect to test.wikipedia.org:443 : error occurred when accessing https://test.wikipedia.org/w/api.php after 6 attempt(s)'
# doesn't match '(?^:^rvbaduser_rvexcludeuser:.*rvexcludeuser)'
# Looks like you failed 2 tests of 5.
t/01-api_error.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/5 subtests
t/02-login.t ................... skipped: extended test
t/03-get_text.t ................ 1/6
我可以轻松访问Chrome中的维基百科网址,因此我不确定发生了什么。许多错误,似乎来自连接问题(?),请遵循:
# Failed test 'Main Page found'
# at t/03-get_text.t line 15.
# undef
# doesn't match '(?^:MediaWiki)'
t/03-get_text.t ................ 2/6
# Failed test 'Known text retrieved'
# at t/03-get_text.t line 18.
# got: undef
# expected: 'I know for a ''fact'' that this page contains 60 characters.'
t/03-get_text.t ................ 3/6
# Failed test 'Section load pass/fail'
# at t/03-get_text.t line 23.
# got: undef
# expected: anything else
# Failed test 'Section loaded content correctly'
# at t/03-get_text.t line 24.
# got: undef
# expected: anything else
大约一小时200行之后:
Files=51, Tests=150, 35210 wallclock secs ( 0.18 usr 0.11 sys + 15.07 cusr 1.97 csys = 17.33 CPU)
Result: FAIL
Failed 34/51 test programs. 90/150 subtests failed.
make: *** [test_dynamic] Error 2
我正在使用Perl v5.18.2和OS X El Capitan。
编辑:我开始认为问题(或我缺乏shell知识)更严重。我尝试sudo cpan
然后upgrade
,基本上一切都失败了:
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
PMQS/BerkeleyDB-0.55.tar.gz : make NO
ANDK/CPAN-2.14.tar.gz : install NO
RURBAN/Crypt-OpenSSL-Random-0.11.tar.gz : make NO
DAPINK/DateTime-TimeZone-Local-Win32-1.94.tar.gz: writemakefile NO '/usr/bin/perl Makefile.PL' returned status 65280
INGY/Inline-C-0.76.tar.gz : make_test NO
ETHER/Test-CleanNamespaces-0.22.tar.gz : make_test NO
ETHER/Moose-2.1806.tar.gz : make_test NO one dependency not OK (Test::CleanNamespaces); additionally test harness failed
ETHER/Moose-Autobox-0.16.tar.gz : make_test NO
DROLSKY/MooseX-ClassAttribute-0.29.tar.gz : make_test NO
ETHER/MooseX-Declare-0.43.tar.gz : make_test NO
ETHER/MooseX-Getopt-0.71.tar.gz : make_test NO
ETHER/MooseX-LazyRequire-0.11.tar.gz : make_test NO
ETHER/MooseX-Method-Signatures-0.49.tar.gz : make_test NO
DOY/MooseX-NonMoose-0.26.tar.gz : make_test NO
DROLSKY/MooseX-Params-Validate-0.21.tar.gz : make_test NO
ETHER/MooseX-Role-WithOverloading-0.17.tar.gz: make_test NO
ETHER/MooseX-Role-Parameterized-1.09.tar.gz : make_test NO one dependency not OK (MooseX::Role::WithOverloading); additionally test harness failed
ETHER/MooseX-Singleton-0.30.tar.gz : make_test NO
ETHER/Test-Deep-Type-0.008.tar.gz : make_test NO
ETHER/MooseX-Storage-0.52.tar.gz : make_test NO one dependency not OK (Test::Deep::Type); additionally test harness failed
ETHER/MooseX-Traits-0.13.tar.gz : make_test NO
MJG/MooseX-TransactionalMethods-0.009.tar.gz : make_test NO
ETHER/MooseX-Types-0.48.tar.gz : make_test NO
ETHER/MooseX-Types-DateTime-0.13.tar.gz : make_test NO
ETHER/MooseX-Types-Structured-0.35.tar.gz : make_test NO
MIKEM/Net-SSLeay-1.78.tar.gz : make NO
MIKER/NetAddr-IP-4.079.tar.gz : make_test NO
KENTNL/Parse-Method-Signatures-1.003017.tar.gz: make_test NO
SHLOMIF/XML-LibXSLT-1.95.tar.gz : make NO
GBARR/IO-Tty-0.04.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 65280
JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz : make_test NO
LEONT/Module-Build-0.4005.tar.gz : make_test NO
ETHER/MooseX-AttributeHelpers-0.25.tar.gz : make_test NO
OVID/MooseX-Role-Strict-0.05.tar.gz : make_test NO
DROLSKY/MooseX-ClassAttribute-0.28.tar.gz : make_test NO 2 dependencies missing (MooseX::Role::Strict,MooseX::AttributeHelpers); additionally test harness failed
JJNAPIORK/MooseX-Types-Structured-0.25.tar.gz: make_test NO
TOBYINK/Type-Tiny-1.000005.tar.gz : make_test NO
RRWO/Pod-Readme-v1.1.2.tar.gz : make_test NO 2 dependencies missing (Type::Tiny,Types::Standard); additionally test harness failed
RJBS/perl-5.24.0.tar.gz : make NO isa perl
this gist提供整个日志(~12000行)。我仍然专注于安装MediaWiki :: Bot,但知道发生了什么事情真好。
编辑2:尽管升级有问题,我仍然可以安装其他模块(不是MediaWiki :: Bot)。我能够成功安装Net :: Telnet。