CC: | mcox [...] hmdc.harvard.edu |
Subject: | incorrect LWP::UserAgent dependency |
I think that the version of LWP::UserAgent that Net::Twitter:Lite
reports that it needs is not correct. I'm using RHEL v5 (which does have
slightly older versions of Perl and libwww), however, they seem to be
within the range supported. I'm seeing a problem that the LWP::UserAgent
does not seem to have the required 'add_handler' method:
$ perl -MNet::Twitter::Lite -e '$nt = Net::Twitter::Lite->new();'
Can't locate object method "add_handler" via package "LWP::UserAgent" at
Net/Twitter/Lite.pm line 48.
$ perl Makefile.PL
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- JSON::Any ...loaded. (1.19 >= 1.19)
- URI::Escape ...loaded. (3.28)
- LWP::UserAgent ...loaded. (2.033 >= 2.032)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Warning: prerequisite ExtUtils::MakeMaker 6.42 not found. We have 6.30.
Writing Makefile for Net::Twitter::Lite
$ perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi
$ rpm -q perl-libwww-perl
perl-libwww-perl-5.805-1.1.1
$ uname -a
Linux ***.***.harvard.edu 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST
2008 x86_64 x86_64 x86_64 GNU/Linux
CPAN indicates that the required 'add_handler' method was first added in
LWP::UserAgent 5.819; the appropriate fix for this issue, it seems,
would be to increase the LWP::UserAgent dependency in your Makefile.PL
from 2.032 to 5.819 (which will, unfortunately, preclude this module
from running on RHEL 5 or earlier).
--
Steve Huff - Systems Administrator, HMDC