pcp
[Top] [All Lists]

Re: [pcp] Unable to install MySQL PMDA on Ubuntu

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Unable to install MySQL PMDA on Ubuntu
From: Marty Customs <marty.customs@xxxxxxxxx>
Date: Wed, 4 Jun 2014 11:50:47 +1000
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=n9X4DFyLTZFDBb/7NH4JNfOIxaykRGxf82oXB1xodY0=; b=SVT5RgOi7Nw2tGVy3cOyTal2Hi/sOpOXzwozYkmdnjq7sA4dJQTgWlawPa6zH4pQz8 X64kcRon0uKzO5ZiOsAdW7mZvcaWRwQCosdOFk2R6IiXz+DfXKFjq/vBszlo7+8yNQhc 5Mp7Chl4uBZIoOorrYv9FAk/yyd9L7rAGaL4F/C96auLYS1Xe/Bis5DUXMl2rPq9Dlhp L7NLo+BNJhii/P6h05Iw4LXXuni9nLrDChLny1ZUPuOiQpMQxAnxlYaDt60vFoZYdlqg IW5D8Yf8FmCrCqm9Jx6oXfaUo5iyceG6oF9HxszZYfE0OTfxrwDXyAPCgnyd8ALGJZz/ 9Fhg==
In-reply-to: <175357119.19843518.1401846357840.JavaMail.zimbra@xxxxxxxxxx>
References: <CA+6qtBsQBaKO6U-wzcrsWMBaGPT6TognWcapd70ednqTaRYwpg@xxxxxxxxxxxxxx> <175357119.19843518.1401846357840.JavaMail.zimbra@xxxxxxxxxx>
Hi Nathan and thanks for the prompt reply :-)

Output below:

$ sudo perl -e 'use PCP::PMDA'
Can't load '/usr/lib/perl5/auto/PCP/PMDA/PMDA.so' for module PCP::PMDA: /usr/lib/perl5/auto/PCP/PMDA/PMDA.so: undefined symbol: pmProgname at /usr/lib/perl/5.14/DynaLoader.pm line 184.
Âat -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
$ echo $?
255




On Wed, Jun 4, 2014 at 11:45 AM, Nathan Scott <nathans@xxxxxxxxxx> wrote:
Hi Marty,

----- Original Message -----
> [...]
> Then from /var/lib/pcp/pmdas/mysql/ I attempt to install the agent but get a
> message instead:
> $ sudo ./Install
> Perl PCP::PMDA module is not installed, install it and try again
>

This message is coming from checks in /usr/share/pcp/lib/pmdaproc.sh which
is attempting to verify the pcp/perl setup - in particular, it runs a hunk
of shell code alot like this:

perl -e 'use PCP::PMDA' 2>/dev/null
if test $? -ne 0
then
  echo 'Perl PCP::PMDA module is not installed, install it and try again'
  exit 1
fi

So what does "sudo perl -e 'use PCP::PMDA'" print out? Â(and whats the exit
code, cos thats ultimately preventing the Install from proceeding).

> I try installing the missing module but it's already installed:
> $ sudo apt-get install libpcp-pmda-perl
> libpcp-pmda-perl is already the newest version.

That's ... wierd. ÂHave never come across this issue myself, testing a stock
Debian install. ÂBut, the answer might come from the perl diagnostics above,
hopefully - let us know what you find.

cheers.

--
Nathan

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