Hi -
On Tue, Oct 06, 2015 at 06:59:45AM +1100, Ken McDonell wrote:
> [...]
> kenj@bozo:~/src/pcp/src$ grep -r 'use.*UserAgent' *
> pmdas/activemq/pmdaactivemq.pl:use LWP::UserAgent;
> pmdas/elasticsearch/pmdaelasticsearch.pl:use LWP::UserAgent;
> pmdas/nginx/pmdanginx.pl:use LWP::UserAgent;
> pmdas/nginx/Install:perl -e "use LWP::UserAgent" 2>/dev/null
Aha, and using that as the HTTP client code for the pmda to query
elasticsearch etc. with.
> The "fix" was to discover that in the the wonderful world of RPM
> packaging anarchy, SuSE and RedHat have made different choices about
> how to package the LWP:UserAgent ... in suseland you need to install
> perl-libwww-perl in redhatland you need to install
> perl-LWP-UserAgent.
Haha, yeah, good catch! In Fedora at least, one can use another
notation for perl libraries:
Requires: perl(LWP::UserAgent)
instead of the actual rpm name. (Similarly for python.) There's a
chance that the suse widget permits the same syntax.
- FChE
|