LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to build binary RPM (https://www.linuxquestions.org/questions/linux-software-2/unable-to-build-binary-rpm-856494/)

DougCM 01-15-2011 10:28 AM

Unable to build binary RPM
 
It compiles fine but at the end there's no binary RPM. I am able to make source RPMS just not binary. Here is the spec file.

Code:

Summary: lesstif
Name: lesstif
Version: 0.95.1
Release: 1
License: GPL
Group: A
Source: lesstif-0.95.1.tar.gz
BuildRequires: Xorg

%description

%prep

%setup

%build

./configure --prefix=/usr
make

%install
make install

%clean


unSpawn 01-15-2011 11:34 AM

What's your distribution and rpm and rpm-build package versions?
What's the actual output from running 'rpmbuild -bb /path/to/your/lesstif.spec'?
* If you want to attach output as plain text run it as 'rpmbuild -bb /path/to/your/lesstif.spec 2>&1|tee /tmp/rpmbuild.txt' and then see "/tmp/rpmbuild.txt".

DougCM 01-15-2011 09:59 PM

Quote:

Originally Posted by unSpawn (Post 4225316)
What's your distribution and rpm and rpm-build package versions?
What's the actual output from running 'rpmbuild -bb /path/to/your/lesstif.spec'?
* If you want to attach output as plain text run it as 'rpmbuild -bb /path/to/your/lesstif.spec 2>&1|tee /tmp/rpmbuild.txt' and then see "/tmp/rpmbuild.txt".

The RPM/build version: rpm (RPM) 5.1.9... im getting the following error
Code:

libtool: install: /usr/bin/install -c .libs/libMrm.so.2.0.1T /usr/lib/libMrm.so.2.0.1
/usr/bin/install: cannot stat `.libs/libMrm.so.2.0.1T': No such file or directory
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/usr/src/rpm/BUILD/lib/Mrm-2.1'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/src/rpm/BUILD/lib/Mrm-2.1'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/rpm/BUILD/lib'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.42505 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.42505 (%install)

RPM is manually installed, it seems to be working aside from being unable to build (it's able to install rpms and make src rpms).

unSpawn 01-16-2011 08:07 AM

I don't know what "manually installed" means or results in except that your distribution apparently doesn't use RPM as package manager. Also you're building packages as root account user which is not a good practice. Finally if this is the whole log then there is no way to determine if the %build phase was successful. Best run the standard './configure --prefix=~/tmp; make; make DESTDIR=~/tmp install' mantra as unprivileged user once before building the package and check if it spits out warnings.


All times are GMT -5. The time now is 06:38 AM.