pcp
[Top] [All Lists]

Re: [pcp] PCP build on CentOS 6.6 - VirtualBox 4.3.26

To: Glen Gunselman <ggunselm@xxxxxxxxxxx>
Subject: Re: [pcp] PCP build on CentOS 6.6 - VirtualBox 4.3.26
From: Paul Colby <pcp@xxxxxxxxxxx>
Date: Thu, 16 Apr 2015 07:04:34 +1000
Cc: pcp <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=c9Scg4GxQE2cevqgh6FhjUeDn5um6Mgefv2OBmXnEWI=; b=F8LlvLvb1MQrhN4NXd6bmhr3tFc3MPsDItlSC8mzNSxBp3G2iKwDD3YHWKCPFjosWT 7oQLy8CwNoiIJANiih08UvWOY9LRIyh/kco1U2t+Q+7J+4jpZZoF/qp360Jld/C7IotZ M/D8bxr4YWuWkYERzkr5krt763k4pFF9Fv36K1QnXbhswuNRf6imSJD1U09zlcTdTC77 LoK+249LqNemLR3ltgnd6o657Ej/yCz5b2dMLzOtLi0MuDop6vb2PekjjVwmxqloNikX K10tw0bawP1Iyvxr8hBk9mvOavaD8Bw0GZLdUKXPBfCu9Aoj/Wf+tXF/4ZTk+FuzjLqq YltQ==
In-reply-to: <83904B8EF53D51499A9B43662BC670A9017F987E89@xxxxxxxxxxxxxxxxx>
References: <83904B8EF53D51499A9B43662BC670A9017F987E89@xxxxxxxxxxxxxxxxx>
Sender: pcolby@xxxxxxxxx
You might need to run `ldconfig` (not sure if `make install` is doing that for you).

See: man ldconfig

Cheers.

pc.

On Thu, Apr 16, 2015 at 5:45 AM, Glen Gunselman <ggunselm@xxxxxxxxxxx> wrote:
I am researching PCP (and friends) as a replacement for Orca/SE Toolkit.

[this morning, sometime after 8 AM CDT]
I created a virtual machine using:
VirtualBox 4.3.26-r98988 on Windows 7 Enterprise SP1
and the
CentOS-6.6-x86_64-bin-DVD1.iso (selected "Basic Server")

The VM was updated using:
# yum update

At this point I created a Forwarding rule and switched to PuTTY.

I created a user account (and group):
# useradd -K PASS_MAX_DAYS=-1 -f -1 -e ""Â -c "for Performance Co-Pilot"Â pcp

added the following:

# yum install git
# yum install gcc
# yum install bison
# yum install flex
# yum install gcc-c++
# yum install qt-devel-4.6.2-28.el6_5.x86_64

switched to user pcp and
$ git clone git://git.pcp.io/pcp
$ cd pcp
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

 Â(Note: configure produced the following warning but otherwise I see no complaints - I ignored the warning)
WARNING: Python version 2.6 header file missing.
Cannot proceed with the Python 2 installation found.

$ make

$ su root
# make install

# chkconfig pmcd on
# service pmcd start

It failed with the following output:


[root@CentOS66BasicServer ~]# chkconfig pmcd on
[root@CentOS66BasicServer ~]# service pmcd start
Rebuilding PMNS ... pmnsmerge: error while loading shared libraries: libpcp.so.3: cannot open shared object file: No such file or directory
Rebuilding the Performance Metrics Name Space (PMNS) in /var/lib/pcp/pmns ...
Rebuild: PCP upgrade processing for "root" PMNS changes ...
Rebuild: merging the following PMNS files:
root root_jbd2 root_linux root_mmv root_pmcd root_proc root_root root_xfs
Rebuild: pmnsmerge failed
    Â"root" has not been changed.
failed (status=1)
Starting pmcd ... /usr/libexec/pcp/bin/pmcd: error while loading shared libraries: libpcp_pmda.so.3: cannot open shared object file: No such file or directory
pmcd_wait: error while loading shared libraries: libpcp.so.3: cannot open shared object file: No such file or directory
/usr/libexec/pcp/bin/pmpost: error while loading shared libraries: libpcp.so.3: cannot open shared object file: No such file or directory

/usr/libexec/pcp/bin/pmpost: error while loading shared libraries: libpcp.so.3: cannot open shared object file: No such file or directory
[root@CentOS66BasicServer ~]#


The showing the following:

# find / -name 'libpcp.so*'
/usr/lib/libpcp.so.3
/usr/lib/libpcp.so
/home/pcp/pcp/src/libpcp/src/libpcp.so.3
/home/pcp/pcp/src/libpcp/src/libpcp.so

I see the following pcp(?) related links in /usr/lib

# ls -l /usr/lib | grep pcp
-rwxr-xr-x. 1 root root 2665548 Apr 15 10:19 libpcp.a
-rwxr-xr-x. 1 root root Â89588 Apr 15 10:19 libpcp_gui.a
lrwxrwxrwx. 1 root root   15 Apr 15 10:19 libpcp_gui.so -> libpcp_gui.so.2
-rwxr-xr-x. 1 root root Â59434 Apr 15 10:19 libpcp_gui.so.2
-rwxr-xr-x. 1 root root 101882 Apr 15 10:19 libpcp_import.a
lrwxrwxrwx. 1 root root   18 Apr 15 10:19 libpcp_import.so -> libpcp_import.so.1
-rwxr-xr-x. 1 root root Â65082 Apr 15 10:19 libpcp_import.so.1
-rwxr-xr-x. 1 root root Â50266 Apr 15 10:19 libpcp_mmv.a
lrwxrwxrwx. 1 root root   15 Apr 15 10:19 libpcp_mmv.so -> libpcp_mmv.so.1
-rwxr-xr-x. 1 root root Â40397 Apr 15 10:19 libpcp_mmv.so.1
-rwxr-xr-x. 1 root root 428214 Apr 15 10:19 libpcp_pmda.a
lrwxrwxrwx. 1 root root   16 Apr 15 10:19 libpcp_pmda.so -> libpcp_pmda.so.3
-rwxr-xr-x. 1 root root 261621 Apr 15 10:19 libpcp_pmda.so.3
lrwxrwxrwx. 1 root root   11 Apr 15 10:19 libpcp.so -> libpcp.so.3
-rwxr-xr-x. 1 root root 1489545 Apr 15 10:19 libpcp.so.3
-rwxr-xr-x. 1 root root 168728 Apr 15 10:19 libpcp_trace.a
lrwxrwxrwx. 1 root root   17 Apr 15 10:19 libpcp_trace.so -> libpcp_trace.so.2
-rwxr-xr-x. 1 root root 102032 Apr 15 10:19 libpcp_trace.so.2


I have very little experience with Linux but have been working with Solaris for the last 10 years. The symbolic links look iffy to me.

I hope this is something simple that I overlooked or missed in the docs.

Is CentOS a good environment for experimenting with PCP and friends?


Thanks for any advice,
Glen Gunselman

_______________________________________________
pcp mailing list
pcp@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/pcp

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