pcp
[Top] [All Lists]

Re: perl pmda package install problems

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: perl pmda package install problems
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Mon, 5 Oct 2015 16:35:41 -0400
Cc: "'pcp developers'" <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5612D6B1.8040509@xxxxxxxxxxxxxxxx>
References: <00df01d0fd5b$36fb3b30$a4f1b190$@internode.on.net> <y0msi5su02y.fsf@xxxxxxxx> <5612D6B1.8040509@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.4.2.2i
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

<Prev in Thread] Current Thread [Next in Thread>