安装Apache :: Session :: Memcached失败

时间:2014-10-31 18:57:12

标签: apache perl cpan cpanm

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

vagrant@precise64:~/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 个答案:

答案 0 :(得分:-1)

考虑到版本号很低,并且从2010年开始有错误报告,我怀疑在某些时候可能会产生负面影响。

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

但是,根据我自己的经验,不支持的模块可能会在意外时回来困扰你 时间不方便。

当然,您可以询问作者是否可以接管该模块;)

我建议你看一下cpan上的替代会话模块。

我正在使用Catalyst插件,但Data::Session对我来说非常好。