LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2011, 10:28 AM   #1
DougCM
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Rep: Reputation: 5
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
 
Old 01-15-2011, 11:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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".
 
Old 01-15-2011, 09:59 PM   #3
DougCM
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by unSpawn View Post
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).
 
Old 01-16-2011, 08:07 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure to build binary rpm from src for autoconf ks2andrew Linux - Software 1 07-16-2010 10:26 AM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
Wrote spec file, installed RPM, binary gives relocation error and refers to build dir hollywoodb Red Hat 2 05-19-2007 10:27 AM
Unable to build RPM file from tarball tkt Linux - Newbie 1 04-26-2005 02:29 AM
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration