4

我在安装 SOAP::Lite 时遇到问题

我在 CentOS 5.9 上使用 perl,v5.8.8

我收到一个错误:

Failed Test                 Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/SOAP/Transport/HTTP/CGI.t    2   512     2    2 100.00%  1-2
6 tests and 25 subtests skipped.
Failed 1/33 test scripts, 96.97% okay. 2/854 subtests failed, 99.77% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

如何修复以便它可以安装 SOAP::Lite?

完整输出:

cp lib/SOAP/Lite.pm blib/lib/SOAP/Lite.pm
cp lib/SOAP/Fault.pod blib/lib/SOAP/Fault.pod
cp bin/SOAPsh.pl blib/script/SOAPsh.pl
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/SOAPsh.pl
cp bin/stubmaker.pl blib/script/stubmaker.pl
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/stubmaker.pl
cp bin/XMLRPCsh.pl blib/script/XMLRPCsh.pl
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/XMLRPCsh.pl
Manifying blib/man1/SOAPsh.pl.1
Manifying blib/man1/stubmaker.pl.1
Manifying blib/man1/XMLRPCsh.pl.1
Manifying blib/man3/SOAP::Packager.3pm
Manifying blib/man3/UDDI::Lite.3pm
Manifying blib/man3/SOAP::Header.3pm
Manifying blib/man3/SOAP::Client.3pm
Manifying blib/man3/XML::Parser::Lite.3pm
Manifying blib/man3/SOAP::Constants.3pm
Manifying blib/man3/SOAP::Transport::LOOPBACK.3pm
Manifying blib/man3/SOAP::Lite::Packager.3pm
Manifying blib/man3/XMLRPC::Transport::TCP.3pm
Manifying blib/man3/XMLRPC::Transport::POP3.3pm
Manifying blib/man3/SOAP::SOM.3pm
Manifying blib/man3/XMLRPC::Lite.3pm
Manifying blib/man3/SOAP::Transport.3pm
Manifying blib/man3/SOAP::Schema.3pm
Manifying blib/man3/SOAP::Test.3pm
Manifying blib/man3/Apache::SOAP.3pm
Manifying blib/man3/Apache::XMLRPC::Lite.3pm
Manifying blib/man3/XMLRPC::Transport::HTTP.3pm
Manifying blib/man3/SOAP::Trace.3pm
Manifying blib/man3/SOAP::Transport::POP3.3pm
Manifying blib/man3/SOAP::Deserializer.3pm
Manifying blib/man3/SOAP::Data.3pm
Manifying blib/man3/SOAP::Server.3pm
Manifying blib/man3/XMLRPC::Test.3pm
Manifying blib/man3/SOAP::Utils.3pm
Manifying blib/man3/SOAP::Serializer.3pm
Manifying blib/man3/SOAP::Fault.3pm
Manifying blib/man3/SOAP::Lite.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/02-payload.t t/05-customxml.t t/010-serializer.t t/096_characters.t t/099_pod_coverage.t t/014_UNIVERSAL_use.t t/03-server.t t/015_UNIVERSAL_can.t t/012-cloneable.t t/08-schema.t t/06-modules.t t/098_pod.t t/01-core.t t/04-attach.t t/07-xmlrpc_payload.t t/013-array-deserialization.t t/097_kwalitee.t t/SOAP/Serializer.t t/SOAP/Data.t t/SOAP/Lite/Packager.t t/SOAP/Lite/Deserializer/XMLSchema1999.t t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_1.t t/SOAP/Lite/Deserializer/XMLSchema2001.t t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_2.t t/SOAP/Schema/WSDL.t t/SOAP/Transport/LOCAL.t t/SOAP/Transport/HTTP.t t/SOAP/Transport/IO.t t/SOAP/Transport/MAILTO.t t/SOAP/Transport/POP3.t t/SOAP/Transport/HTTP/CGI.t t/XMLRPC/Lite.t t/XML/Parser/Lite.t
t/01-core....................................ok
        3/42 skipped: various reasons
t/010-serializer.............................ok
t/012-cloneable..............................ok
t/013-array-deserialization..................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145, <DATA> chunk 1.
t/013-array-deserialization..................ok
t/014_UNIVERSAL_use..........................ok
t/015_UNIVERSAL_can..........................ok
t/02-payload.................................ok
t/03-server..................................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/03-server..................................ok
        10/32 skipped:
t/04-attach..................................skipped
        all skipped: Could not find MIME::Parser - is MIME::Tools installed? Aborting.
t/05-customxml...............................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145, <DATA> line 161.
t/05-customxml...............................ok
t/06-modules.................................ok 1/0Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/06-modules.................................ok
        6/17 skipped: various reasons
t/07-xmlrpc_payload..........................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/07-xmlrpc_payload..........................ok
t/08-schema..................................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/08-schema..................................ok
t/096_characters.............................skipped
        all skipped: no reason given
t/097_kwalitee...............................skipped
        all skipped: no reason given
t/098_pod....................................skipped
        all skipped: no reason given
t/099_pod_coverage...........................skipped
        all skipped: no reason given
t/SOAP/Data..................................ok
t/SOAP/Lite/Deserializer/XMLSchema1999.......ok
t/SOAP/Lite/Deserializer/XMLSchema2001.......ok
t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_1....ok
t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_2....ok
t/SOAP/Lite/Packager.........................ok
t/SOAP/Schema/WSDL...........................ok
t/SOAP/Serializer............................ok
        1/13 skipped: Cannot test without Test::Differences
t/SOAP/Transport/HTTP........................ok
        4/36 skipped: various reasons
t/SOAP/Transport/HTTP/CGI....................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.

#   Failed test 'return utf8 string'
#   at t/SOAP/Transport/HTTP/CGI.t line 57.
t/SOAP/Transport/HTTP/CGI....................NOK 1
t/SOAP/Transport/HTTP/CGI....................NOK 2#   Failed test 'utf8 content: ÃÂberall'
#   at t/SOAP/Transport/HTTP/CGI.t line 59.
#          got: 'ÃÂberall'
#     expected: 'Ãberall'
# Looks like you failed 2 tests of 2.
t/SOAP/Transport/HTTP/CGI....................dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
        Failed 2/2 tests, 0.00% okay
t/SOAP/Transport/IO..........................ok 1/0Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/SOAP/Transport/IO..........................ok
        1/8 skipped: cannot test Scalar IO without IO::Scalar
t/SOAP/Transport/LOCAL.......................ok 1/0Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/SOAP/Transport/LOCAL.......................ok
t/SOAP/Transport/MAILTO......................skipped
        all skipped: Cannot test without Test::MockObject
t/SOAP/Transport/POP3........................ok
t/XML/Parser/Lite............................Subroutine XML::Parser::Lite::_parse_re redefined at /root/.cpan/build/SOAP-Lite-0.715/blib/lib/XML/Parser/Lite.pm line 145.
t/XML/Parser/Lite............................ok
t/XMLRPC/Lite................................ok
Failed Test                 Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/SOAP/Transport/HTTP/CGI.t    2   512     2    2 100.00%  1-2
6 tests and 25 subtests skipped.
Failed 1/33 test scripts, 96.97% okay. 2/854 subtests failed, 99.77% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
4

5 回答 5

6

对于使用 Debian 或 Ubuntu 的人:

apt-get install -y libsoap-lite-perl
于 2015-01-18T21:20:44.993 回答
3

我遇到了同样的问题并最终这样做了。希望这能满足您的需求。

  1. 首先从http://search.cpan.org/~phred/SOAP-Lite-0.716/下载 SOAP-Lite 包
  2. 解压缩包并删除名为“t”的文件夹。
  3. perl Makefile.PL
  4. make
  5. make test
  6. sudo make install
于 2013-07-08T15:41:56.047 回答
2

尝试这样做:

yum install perl-SOAP-Lite

或从rpm.pbone.net下载,最后

rpm -i package.rpm
于 2013-03-11T17:47:06.633 回答
0

您可以像这样使用 cpan 进行强制安装:

force install SOAP::Lite

这对我有用

于 2013-07-12T21:29:52.803 回答
0

看起来测试可能会被破坏;我正在看

t/SOAP/Transport/HTTP/CGI.t .................. 1/? 
#   Failed test 'return utf8 string'
#   at t/SOAP/Transport/HTTP/CGI.t line 57.

#   Failed test 'utf8 content: Ãberall'
#   at t/SOAP/Transport/HTTP/CGI.t line 59.
#          got: 'Ãberall'
#     expected: 'Überall'
# Looks like you failed 2 tests of 2.

最简单的方法是将模块提取到一个临时文件夹中,并在运行之前删除此测试:

 perl Makefile.PL
 make
 make test
 make install

您可能还想向模块所有者提交错误报告(尽管这已经一年多没有涉及了)

于 2013-03-11T17:58:08.807 回答