Thanks for this Arthur.
There are 2 problems here.
1. The instructions don't match the current build recipe, and
2. Building the Perl pieces is notoriously fragile.
To address 1. (and bypass 2.) I'd suggest ...
$ cd pcp
$ ./Makepkgs
Then depending on the platform, you'll end up with installable packages
in ./build/*/
For rpm-based systems, the installation can be done as
$ sudo rpm -U --force --nodeps `ls build/rpm/*.rpm | sed -e '/src.rpm/d'`
You don't need the --force unless you're trying to re-install a rebuild
of the same version that is already installed. And --nodeps is required
because some of the perl pieces have prereqs on rpms that are unlikely
to be installed (or just omit the PCP perl rpms from the list you feed
to rpm).
Follow the same recipe for pcp-gui.
I've done this and it works on Centos 6.0.
On Mon, 2011-10-24 at 15:56 -0700, Arthur Kepner wrote:
> Hi;
>
> Someone pointed out to me that, using the instructions from
> http://oss.sgi.com/projects/pcp/pcp-gui.git/man/html/installation.html#src
> , that 'make install' fails for pcp.
>
> i.e.,
>
> $ git clone git://oss.sgi.com/pcp/pcp.git pcp
> $ git clone git://oss.sgi.com/pcp/pcp-gui.git pcp-gui
> $ cd pcp
> $ make default install
>
> fails with:
> .....
> === PMDA ===
> rm -rf PCP-PMDA-*
> /usr/bin/gmake -f Makefile dist
> rm -rf PCP-PMDA-1.13
> /usr/bin/perl "-MExtUtils::Manifest=manicopy,maniread" \
> -e "manicopy(maniread(),'PCP-PMDA-1.13', 'best');"
> mkdir PCP-PMDA-1.13
> Generating META.yml
> tar cvf PCP-PMDA-1.13.tar PCP-PMDA-1.13
> PCP-PMDA-1.13/
> PCP-PMDA-1.13/PMDA.xs
> PCP-PMDA-1.13/local.c
> PCP-PMDA-1.13/MANIFEST
> PCP-PMDA-1.13/Makefile.PL
> PCP-PMDA-1.13/local.h
> PCP-PMDA-1.13/test.pl
> PCP-PMDA-1.13/META.yml
> PCP-PMDA-1.13/Changes
> PCP-PMDA-1.13/cvalue.c
> PCP-PMDA-1.13/COPYING
> PCP-PMDA-1.13/PMDA.pm
> PCP-PMDA-1.13/typemap
> rm -rf PCP-PMDA-1.13
> gzip --best PCP-PMDA-1.13.tar
> /usr/bin/gmake -f Makefile install DESTDIR=$DIST_ROOT; find $DIST_ROOT
> -name .packlist -exec mv '{}' ../../../perl-pcp-pmda.list ';' ; if [ -s
> ../../../perl-pcp-pmda.list ] ; then sed -n -e '/\.bs$/d' -e
> 's/\.[0-9]pm$/&.gz/' -e "s@^$DIST_ROOT@@p" -i.tmp
> ../../../perl-pcp-pmda.list || exit 1; else echo "Arrgh ... no files to
> include in package via ../../../perl-pcp-pmda.list"; exit 1; fi; find
> $DIST_ROOT -name perllocal.pod -exec rm -f '{}' ';' ; find $DIST_ROOT
> -name \*.bs -exec rm -f '{}' ';' ; find $DIST_ROOT -name PMDA.so -exec
> chmod 755 '{}' ';'
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> Installing /usr/lib64/perl5/vendor_perl/auto/PCP/PMDA/PMDA.so
> Installing /usr/lib64/perl5/vendor_perl/PCP/PMDA.pm
> Installing /usr/share/man/man3/PCP::PMDA.3pm
> Appending installation info to /usr/lib64/perl5/perllocal.pod
> Arrgh ... no files to include in package via ../../../perl-pcp-pmda.list
> gmake[3]: *** [install] Error 1
> gmake[2]: *** [install] Error 2
> gmake[1]: *** [install_pcp] Error 2
> gmake[1]: Leaving directory `/var/tmp/pcp/src'
> make: *** [install_pcp] Error 2
>
>
> FWIW (and I doubt it's critical), this is with rhel6.2, and GNU Make 3.81.
>
|