2020-06-09

Building Ganglia Monitor Core 3.6.1 on RHEL 7 - "Installed (but unpackaged) file(s) found" error

Install a bunch of prerequisites, some from EPEL:
* libconfuse
* libart_lgpl-devel

Download source: monitor-core-3.6.1.tar.gz

Expand the tarball: tar xf monitor-core-3.6.1.tar.gz  That creates the directory monitor-core-3.6.1

Enter that directory and run the bootstrap script: ./bootstrap.sh

That generates the configure script. 

Run the configure script: ./configure

That generates the SPEC file: ganglia.spec

Make a tar ball with the appropriate name:
    cd ..
    mv monitor-core-3.6.1 ganglia-3.6.1
    tar zcf ganglia-3.6.1.tar.gz ganglia-3.6.1

Build with rpmbuild -ta ganglia-3.6.1.tar.gz

Will probably get RPM build errors:
    bogus date in %changelog: Thu Mar 28 2008 Brad Nicholes <bnicholes@novell.com>
    bogus date in %changelog: Wed Jul 10 2007 Bernard Li <bernard@vanhpc.org>
    bogus date in %changelog: Wed Jul 3 2007 Brad Nicholes <bnicholes@novell.com>
    bogus date in %changelog: Wed Jun 14 2007 Brad Nicholes <bnicholes@novell.com>
    bogus date in %changelog: Fri Feb 25 2006 Bernard Li <bli@bcgsc.ca>
    Installed (but unpackaged) file(s) found:
   /usr/lib/systemd/system/gmetad.service
   /usr/lib/systemd/system/gmond.service

Modify the SPEC file ganglia.spec: add line in "%files gmetad" section:
    /usr/lib/systemd/system/gmetad.service

and in "%files gmond" section:
    /usr/lib/systemd/system/gmond.service

Make a new tar ball containing the fixed SPEC file (delete the old one first):
    rm ganglia-3.6.1.tar.gz
    tar zcf ganglia-3.6.1.tar.gz ganglia-3.6.1

Then build with: rpmbuild -ta ganglia-3.6.1.tar.gz

RPMs should be in: ~/rpmbuild/RPMS/x86_64

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.