Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th December 2012, 12:24 PM
flebber's Avatar
flebber Offline
Registered User
 
Join Date: Mar 2005
Location: Newcastle, Australia
Posts: 186
linuxfirefox
rpmbuild building src rpm

I was building the src rpm of the jupiter applet, well trying I have never done it before.

Following this guide http://forums.fedoraforum.org/archiv...php/t-379.html

However when I attempt to run rpmbuild I am told it does not exist, the article was from 2004 has the command been replaced?

This was my output.
Code:
[sayth@renshawfamily Downloads]$ cd /usr/src/redhat
[sayth@renshawfamily redhat]$ rpmbuild --rebuild --target x86_64 --define "kernel 3.6.9-4.fc18" ~/Downloads/jupiter-0.1.9-1.src.rpm
bash: rpmbuild: command not found...
[sayth@renshawfamily redhat]$
Reply With Quote
  #2  
Old 9th December 2012, 12:31 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxchrome
Re: rpmbuild building src rpm

It sounds as if you haven't installed all the necessary packages.

This is CentOS but see if you have the rpm-build (note the dash) installed.

When a command, or even a shared object (for example, if you get a message thislib.so.3 not found) is missing, one way to find it is

yum provides */<missing_file>, for example, in this instance, yum provides */rpm-build. (One way to make the search go a bit more quickly is to just use the main Fedora repo for the search, especially if it's a common file, otherwise, it will search all repos that you usually use. So, for example

yum --disablerepo=* --enablerepo=fedora provides */rpmbuild


In this case, the rpm-build package provides rpmbuild.

Just doublechecked on F18, and it's still the rpm-build package.

So yum install rpm-build should fix that for you.

Last edited by smr54; 9th December 2012 at 12:36 PM.
Reply With Quote
  #3  
Old 9th December 2012, 12:33 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: rpmbuild building src rpm

Try


Code:
su
yum install @Development\ Tools  rpmdevtools
exit
cd ~
rpmdev-setuptree
rpmbuild --rebuild --target x86_64 --define "kernel 3.6.9-4.fc18" ~/Downloads/jupiter-0.1.9-1.src.rpm
Reply With Quote
  #4  
Old 9th December 2012, 12:39 PM
flebber's Avatar
flebber Offline
Registered User
 
Join Date: Mar 2005
Location: Newcastle, Australia
Posts: 186
linuxfirefox
Re: rpmbuild building src rpm

Thanks that worked.
Reply With Quote
  #5  
Old 9th December 2012, 12:44 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: rpmbuild building src rpm

Did you need to change this as it looks wrong?

Code:
--define "kernel 3.6.9-4.fc18"
it normally requires the arch as well

Code:
--define "kernel 3.6.9-4.fc18.x86_64"
Reply With Quote
  #6  
Old 9th December 2012, 12:53 PM
flebber's Avatar
flebber Offline
Registered User
 
Join Date: Mar 2005
Location: Newcastle, Australia
Posts: 186
linuxfirefox
Re: rpmbuild building src rpm

Thanks Yellowman

This is how I did full command.
Code:
[sayth@renshawfamily ~]$ rpmbuild --rebuild --target x86_64 --define "kernel 3.6.9-4.fc18" ~/Downloads/jupiter-0.1.9-1.src.rpm
Reply With Quote
Reply

Tags
building, rpm, rpmbuild, src

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmbuild smcracraft Linux Chat 3 7th April 2012 01:34 PM
rpmbuild cdlaforc Programming & Packaging 2 11th December 2006 04:17 PM
rpmbuild: where is it? theprez98 Using Fedora 3 17th January 2005 06:48 AM
how exactly do I use rpmbuild Shadow Skill Using Fedora 7 19th October 2004 08:05 AM


Current GMT-time: 06:51 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat