On 25/03/13 08:30, Nathan Scott wrote:
>
>
> ----- Original Message -----
>> I am seeing this failure from QA 255 on Mac OS X (but no where else)
>> ... help from a Perl-knowledgeable person would be appreciated.
>>
>
> This is because the pmdasimple.pl in the tree is using the (relatively
> new) hash-based indom accessors (which are pmdaCache backed). I would
> punt the version of the perl PCP::PMDA module installed is out of date
> somehow - older versions did not have this. Its also possible you've
> got multiple versions of that module installed, and the perl module path
> is finding the older version first perhaps.
>
> "perl -V" lists the @INC variable, which shows that search path.
Good guess Nathan.
But this leads to an uglier problem ... PCP::PMDA is not being installed from
the most recent Mac OS X packages ...
comma:~ kenj$ find /Library/Perl /System/Library/Perl /Network/Library/Perl
-name "PMDA.bundle" | xargs ls -l
-rwxr-xr-x 1 root wheel 224040 Jun 26 2012
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/PCP/PMDA/PMDA.bundle
comma:~ kenj$ ls -l /etc/pcp.conf
-rw-r--r-- 1 root wheel 5396 Mar 13 11:31 /etc/pcp.conf
comma:~ kenj$ pcp
Performance Co-Pilot configuration on comma.localdomain:
platform: Darwin comma.localdomain 10.8.0 Darwin Kernel Version 10.8.0: Tue
Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
hardware: 2 cpus, 2 disks, 2047MB RAM
timezone: EST-11
pmcd: Version 3.7.1-1, 10 agents, 1 client
pmda: pmcd trace sendmail sample sampledso mmv darwin logger trivial
simple
pmlogger: primary logger: comma/20130323.11.34
But after some digging, I see all the Perl bits are being installed here
comma:mac kenj$ ls -l /usr/lib/perl5/darwin-thread-multi-2level/PCP
total 48
-rw-r--r-- 1 root wheel 4526 Mar 13 11:31 LogImport.pm
-rw-r--r-- 1 root wheel 3604 Mar 13 11:31 MMV.pm
-rw-r--r-- 1 root wheel 7332 Mar 13 11:31 PMDA.pm
-rwxr-xr-x 1 root wheel 2883 Mar 13 11:31 server.pl
which does not look right.
Based on the dates, this has probably been broken for a few months.
|