2014-10-31 121 views
0

我使用sudo cpanm -v Apache :: Session :: Memcached在Ubuntu 12.04 LTS 64位下安装。我会将整个安装消息粘贴在底部。我的猜测是它与测试有关,但不明白测试是什么以及测试失败的原因,因为它不是我编写的测试,而是随软件包一起提供。我的问题是:如何通过测试?如果我忽略测试并强制安装它,会不会有任何负面影响?安装Apache :: Session :: Memcached失败

[email protected]:~/application$ sudo cpanm -v Apache::Session::Memcached     
cpanm (App::cpanminus) 1.7014 on perl 5.014002 built for x86_64-linux-gnu-thread-multi 
Work directory is /home/vagrant/.cpanm/work/1414779306.19403 
You have make /usr/bin/make 
You have LWP 6.03 
You have /bin/tar: tar (GNU tar) 1.26 
Copyright (C) 2011 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. 

Written by John Gilmore and Jay Fenlason. 
You have /usr/bin/unzip 
Searching Apache::Session::Memcached on cpanmetadb ... 
--> Working on Apache::Session::Memcached 
Fetching http://www.cpan.org/authors/id/E/EN/ENRYS/Apache-Session-Memcached-0.03.tar.gz ... OK 
Unpacking Apache-Session-Memcached-0.03.tar.gz 
Apache-Session-Memcached-0.03/ 
Apache-Session-Memcached-0.03/t/ 
Apache-Session-Memcached-0.03/t/01cache.t 
Apache-Session-Memcached-0.03/t/CONFIG 
Apache-Session-Memcached-0.03/t/02flex.t 
Apache-Session-Memcached-0.03/t/testlib.pl 
Apache-Session-Memcached-0.03/t/00base.t 
Apache-Session-Memcached-0.03/lib/ 
Apache-Session-Memcached-0.03/lib/Apache/ 
Apache-Session-Memcached-0.03/lib/Apache/Session/ 
Apache-Session-Memcached-0.03/lib/Apache/Session/Store/ 
Apache-Session-Memcached-0.03/lib/Apache/Session/Store/Memcached.pm 
Apache-Session-Memcached-0.03/lib/Apache/Session/Memcached.pm 
Apache-Session-Memcached-0.03/MANIFEST 
Apache-Session-Memcached-0.03/Changes 
Apache-Session-Memcached-0.03/README 
Apache-Session-Memcached-0.03/META.yml 
Apache-Session-Memcached-0.03/Makefile.PL 
Entering Apache-Session-Memcached-0.03 
Checking configure dependencies from META.yml 
Running Makefile.PL 
Configuring Apache-Session-Memcached-0.03 ... Checking if your kit is complete... 
Looks good 
Generating a Unix-style Makefile 
Writing Makefile for Apache::Session::Memcached 
Writing MYMETA.yml and MYMETA.json 
OK 
Checking dependencies from MYMETA.json ... 
Checking if you have Cache::Memcached 1.14 ... Yes (1.30) 
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00) 
Checking if you have Apache::Session 1.54 ... Yes (1.93) 
Building and testing Apache-Session-Memcached-0.03 ... cp lib/Apache/Session/Store/Memcached.pm blib/lib/Apache/Session/Store/Memcached.pm 
cp lib/Apache/Session/Memcached.pm blib/lib/Apache/Session/Memcached.pm 
Manifying 2 pod documents 
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t 
t/00base.t ... ok 
t/01cache.t .. 1/4 Object does not exist in data store. at /home/vagrant/.cpanm/work/1414779306.19403/Apache-Session-Memcached-0.03/blib/lib/Apache/Session/Store/Memcached.pm line 44, <CFG> line 1. 
t/01cache.t .. Dubious, test returned 111 (wstat 28416, 0x6f00) 
Failed 2/4 subtests 
t/02flex.t ... 1/4 Object does not exist in data store. at /home/vagrant/.cpanm/work/1414779306.19403/Apache-Session-Memcached-0.03/blib/lib/Apache/Session/Store/Memcached.pm line 44, <CFG> line 1. 
t/02flex.t ... Dubious, test returned 111 (wstat 28416, 0x6f00) 
Failed 2/4 subtests 

Test Summary Report 
------------------- 
t/01cache.t (Wstat: 28416 Tests: 2 Failed: 0) 
    Non-zero exit status: 111 
    Parse errors: Bad plan. You planned 4 tests but ran 2. 
t/02flex.t (Wstat: 28416 Tests: 2 Failed: 0) 
    Non-zero exit status: 111 
    Parse errors: Bad plan. You planned 4 tests but ran 2. 
Files=3, Tests=5, 0 wallclock secs (0.02 usr 0.01 sys + 0.14 cusr 0.02 csys = 0.19 CPU) 
Result: FAIL 
Failed 2/3 test programs. 0/5 subtests failed. 
make: *** [test_dynamic] Error 111 
FAIL 
! Installing Apache::Session::Memcached failed. See /home/vagrant/.cpanm/work/1414779306.19403/build.log for details. Retry with --force to force install it. 
+1

你应该在问题中说明问题以便更清楚。 – carlodurso 2014-10-31 19:05:00

+1

谢谢,只是增加了一些具体的问题。 – user3042280 2014-10-31 19:47:53

回答

-1

考虑到版本号为低,并有错误报告从2010年开放,我会怀疑有可能会在某些时候负面的副作用。

但是,模块仍然可以按预期工作,如果您确实想使用它,我建议您自己做一些测试,并发现安装测试失败的原因。

以我自己的经验,虽然不支持的模块可能会以不方便的方式回想起你意想不到的 次。

当然,你可能会问笔者,如果你能接管模块;)

我建议考虑看看CPAN上的其它会议模块。

我正在使用Catalyst插件,但Data::Session对我来说看起来不错。

+0

我找到了一种方法来绕过它,但仍然感谢您的答案,它为我的疑问提供了一些信息。 – user3042280 2014-11-17 02:35:32