Hi I am try to write rpm spec for install tomcat on a linux machine.But while build the rpm i found following error + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/rpmbuild/BUILD/Install_tomcat-1.0 extracting debug info from /home/rpmbuild/BUILDROOT/Install_tomcat-1.0-1.el6.x86_64/usr/local/jdk1.7.0_13/lib/visualvm/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so *** ERROR: No build ID note found in /home/rpmbuild/BUILDROOT/Install_tomcat-1.0-1.el6.x86_64/usr/local/jdk1.7.0_13/lib/visualvm/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so error: Bad exit status from /home/rpmbuild/tmp/rpm-tmp.n1saIQ (%install) RPM build errors: Bad exit status from /home/rpmbuild/tmp/rpm-tmp.n1saIQ (%install) Below is my spec file Name: Install_tomcat Version: 1.0 Release: 1%{?dist} Summary: Tomcat installer Group: Application License: BSOFT Source0: Install_tomcat-1.0.tar.gz BuildArch: noarch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) #BuildRequires: #Requires: %description This RPM is used to install the tomcat application %clean rm -rf $RPM_BUILD_ROOT %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/usr/local cd $RPM_BUILD_ROOT/usr/local tar -xf %{_topdir}/SOURCES/Install_tomcat-1.0.tar.gz --strip 1 tar -xf jdk-7u13-linux-x64.gz ln -s jdk1.7.0_13/ $RPM_BUILD_ROOT/usr/local/java echo "export JAVA_HOME=/usr/local/java" >>/etc/profile echo "PATH=\${JAVA_HOME}/bin:\${PATH}" >>/etc/profile source /etc/profile java -version tar -xf apache-tomcat-7.0.32.tar.gz ln -s apache-tomcat-7.0.32/ $RPM_BUILD_ROOT/usr/local/tomcat %files %dir /usr/local %defattr(-,root,root,-) %doc %post chmod 755 -R /usr/local Please help me to solve the error Thanks Jegadeesh