Subject: | Installation via CPAN fails |
I have try to install this module with CPAN, in order to run the "rtm"
tool. Installation failed, however. This is cpan's output:
% cpan WebService::RTMAgent
CPAN: Storable loaded ok (v2.20)
Going to read '/home/yogan/.cpan/Metadata'
Database was generated on Wed, 23 Sep 2009 19:30:23 GMT
CPAN: LWP::UserAgent loaded ok (v5.833)
CPAN: Time::HiRes loaded ok (v1.9719)
Warning: no success downloading
'/home/yogan/.cpan/sources/authors/01mailrc.txt.gz.tmp14553'. Giving up
on it. at /usr/share/perl/5.10/CPAN/Index.pm line 225
I would like to connect to one of the following sites to get
'authors/01mailrc.txt.gz':
http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/
Is it OK to try to connect to the Internet? [yes]
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read '/home/yogan/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read '/home/yogan/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Fri, 30 Oct 2009 08:33:52 GMT
............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/03modlist.data.gz
Going to read '/home/yogan/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
Going to write /home/yogan/.cpan/Metadata
Running install for module 'WebService::RTMAgent'
CPAN: Data::Dumper loaded ok (v2.124)
'YAML' not installed, falling back to Data::Dumper and Storable to read
prefs '/home/yogan/.cpan/prefs'
Running make for R/RU/RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/R/RU/RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/R/RU/RUTSCHLE/CHECKSUMS
Checksum for
/home/yogan/.cpan/sources/authors/id/R/RU/RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
ok
CPAN: Archive::Tar loaded ok (v1.52)
WebService-RTMAgent-0.5/
WebService-RTMAgent-0.5/lib/
WebService-RTMAgent-0.5/lib/WebService/
WebService-RTMAgent-0.5/lib/WebService/RTMAgent.pm
WebService-RTMAgent-0.5/t/
WebService-RTMAgent-0.5/t/response.addtask
WebService-RTMAgent-0.5/t/request.getlist
WebService-RTMAgent-0.5/t/request.failrq
WebService-RTMAgent-0.5/t/request.addtask
WebService-RTMAgent-0.5/t/boilerplate.t
WebService-RTMAgent-0.5/t/response.failrq
WebService-RTMAgent-0.5/t/00-load.t
WebService-RTMAgent-0.5/t/pod-coverage.t
WebService-RTMAgent-0.5/t/request.badparam
WebService-RTMAgent-0.5/t/pod.t
WebService-RTMAgent-0.5/t/request.invalidfrob
WebService-RTMAgent-0.5/t/response.timeline
WebService-RTMAgent-0.5/t/request.getfrob
WebService-RTMAgent-0.5/t/config
WebService-RTMAgent-0.5/t/request.checktoken
WebService-RTMAgent-0.5/t/request.timeline
WebService-RTMAgent-0.5/t/request.gettoken
WebService-RTMAgent-0.5/t/response.invalidfrob
WebService-RTMAgent-0.5/t/undo.t
WebService-RTMAgent-0.5/t/response.getfrob
WebService-RTMAgent-0.5/t/response.badtoken
WebService-RTMAgent-0.5/t/request.unknown
WebService-RTMAgent-0.5/t/response.getlist
WebService-RTMAgent-0.5/t/request.badtoken
WebService-RTMAgent-0.5/t/response.unknown
WebService-RTMAgent-0.5/t/init.t
WebService-RTMAgent-0.5/t/requests.t
WebService-RTMAgent-0.5/t/request.tasklist
WebService-RTMAgent-0.5/t/response.badparam
WebService-RTMAgent-0.5/t/response.checktoken
WebService-RTMAgent-0.5/t/response.tasklist
WebService-RTMAgent-0.5/t/response.gettoken
WebService-RTMAgent-0.5/t/auth.t
WebService-RTMAgent-0.5/Changes
WebService-RTMAgent-0.5/MANIFEST
WebService-RTMAgent-0.5/.cvsignore
WebService-RTMAgent-0.5/Makefile.PL
WebService-RTMAgent-0.5/README
WebService-RTMAgent-0.5/META.yml
CPAN: File::Temp loaded ok (v0.22)
Warning (usually harmless): 'YAML' not installed, will not store
persistent state
CPAN.pm: Going to build R/RU/RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
Checking if your kit is complete...
Looks good
WARNING: Setting ABSTRACT via file 'lib/WebService/RTMAgent.pm' failed
at /usr/share/perl/5.10/ExtUtils/MakeMaker.pm line 583
Writing Makefile for WebService::RTMAgent
Could not read
'/home/yogan/.cpan/build/WebService-RTMAgent-0.5-QqjrNM/META.yml'.
Falling back to other methods to determine prerequisites
cp lib/WebService/RTMAgent.pm blib/lib/WebService/RTMAgent.pm
Manifying blib/man3/WebService::RTMAgent.3pm
RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store
persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....... 1/1 # Testing WebService::RTMAgent 0.5, Perl
5.010001, /usr/bin/perl
t/00-load.t ....... ok
t/auth.t .......... frobbed -- getting token
t/auth.t .......... 1/7 frobbed -- getting token
token token
t/auth.t .......... ok
t/boilerplate.t ... ok
t/init.t .......... 1/4 Use of uninitialized value in concatenation (.)
or string at
/home/yogan/.cpan/build/WebService-RTMAgent-0.5-QqjrNM/blib/lib/WebService/RTMAgent.pm
line 293.
Use of uninitialized value in concatenation (.) or string at
/home/yogan/.cpan/build/WebService-RTMAgent-0.5-QqjrNM/blib/lib/WebService/RTMAgent.pm
line 280.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/LWP/UserAgent.pm line 262.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/LWP/UserAgent.pm line 263.
t/init.t .......... 4/4
# Failed test 'Don't start if config file isn't XML'
# at t/init.t line 62.
Use of uninitialized value at
/home/yogan/.cpan/build/WebService-RTMAgent-0.5-QqjrNM/blib/lib/WebService/RTMAgent.pm
line 351
# Looks like you failed 1 test of 4.
t/init.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.08 required for
testing POD coverage
t/pod.t ........... ok
t/requests.t ...... 1/12 request:
POST http://www.rememberthemilk.com/services/rest/
Content-Type: application/x-www-form-urlencoded
method=rtm.tasks.add&nam=adding&api_key=key&auth_token=10438&timeline=114114&api_sig=3340edd30a22e9b2c67ff206283d0b67
response:
HTTP/1.1 200 OK
Connection: keep-alive
Date: Mon, 24 Dec 2007 11:49:10 GMT
Server: nginx/RTM
Vary: Accept-Encoding
Content-Type: text/xml; charset="utf-8"
Client-Date: Mon, 24 Dec 2007 11:50:39 GMT
Client-Peer: 75.126.232.204:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Keep-Alive: timeout=300
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="fail"><err code="4000" msg="Task name provided is
invalid."/></rsp>
t/requests.t ...... ok
t/undo.t .......... ok
Test Summary Report
-------------------
t/boilerplate.t (Wstat: 0 Tests: 3 Failed: 0)
TODO passed: 1-3
t/init.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 4
Non-zero exit status: 1
Files=8, Tests=35, 2 wallclock secs ( 0.02 usr 0.02 sys + 0.83 cusr
0.12 csys = 0.99 CPU)
Result: FAIL
Failed 1/8 test programs. 1/35 subtests failed.
make: *** [test_dynamic] Error 255
RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports RUTSCHLE/WebService-RTMAgent-0.5.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store
persistent state
Running make install
make test had returned bad status, won't install without force
I tried a forced installation then. This put the module in
/usr/local/share/perl/5.10.1/WebService/RTMAgent.pm but the "rtm" tool
fails when started:
% ./rtm
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/LWP/UserAgent.pm line 262.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/LWP/UserAgent.pm line 263.
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.1/WebService/RTMAgent.pm line 295.
Use of uninitialized value in numeric ge (>=) at
/usr/share/perl5/LWP/UserAgent.pm line 262.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/LWP/UserAgent.pm line 263.
98: Login failed / Invalid auth token
Use of uninitialized value at
/usr/local/share/perl/5.10.1/WebService/RTMAgent.pm line 351
My perl version:
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi