Nagios 3.4.1 on CentOS 5.8

Wempa, Kristofer Kristofer.Wempa at
Mon Jun 18 12:53:16 UTC 2012

> Hi
> I am trying to build nagios rpm from nagios.spec file on CentOS 5.8.  I am getting into issues.
> nagios.spec
> rpmbuild -ba nagios.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36485
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd /usr/src/redhat/BUILD
> + rm -rf nagios-3.4.1
> + /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-3.4.1.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd nagios-3.4.1
> /var/tmp/rpm-tmp.36485: line 31: cd: nagios-3.4.1: No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)
> which mentions about /var/tmp/rpm-tmp.36485
> Any clue?
> Regards
> Kaushal

Have you confirmed that the tarball actually contains a top directory named "nagios-3.4.1" ?  I'm not familiar with this particular package, but I would first untar it and double check it's directory/file structure.  In my experiences, I've found that the package source is often tarred up incorrectly and needs to be redone with the appropriately named top directory.  From the output, I can't see any other possibility.


IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list