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 5th January 2009, 05:25 PM
Thaidog Offline
Registered User
 
Join Date: Feb 2006
Posts: 184
Question rpmbuild: command not found

Do I need to install rpmbuild? After I did an su - I could not execute rpmbuild:

[root@Fedora Desktop]# su -
[root@Fedora ~]# rpmbuild
-bash: rpmbuild: command not found

What do I need to install to get rpmbuild?
Reply With Quote
  #2  
Old 5th January 2009, 05:35 PM
livibetter's Avatar
livibetter Offline
Registered User
 
Join Date: Feb 2007
Location: Taipei
Posts: 29
Use the following to find out what package contains it:
Code:
yum provides "*/rpmbuild"
Reply With Quote
  #3  
Old 5th January 2009, 06:50 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,141
Code:
yum install rpm-build rpmdevtools
DO NOT use rpmbuild and associated rpmdevtools programs as root user. Do so only as a regular user in ~/
Reply With Quote
  #4  
Old 5th January 2009, 07:18 PM
sanjay_ankur's Avatar
sanjay_ankur Offline
Registered User
 
Join Date: Feb 2008
Location: Sydney
Age: 24
Posts: 435
Quote:
Originally Posted by Thaidog View Post
Do I need to install rpmbuild? After I did an su - I could not execute rpmbuild:

[root@Fedora Desktop]# su -
[root@Fedora ~]# rpmbuild
-bash: rpmbuild: command not found

What do I need to install to get rpmbuild?
hi,

From the fedoraproject page :

Code:
Setting up your system and account 

Before you create RPM packages on Fedora, you need to install some core development tools and set up the account(s) you will use. As root (don't type the "#"!): 

 # yum groupinstall "Development Tools"
 # yum install rpmdevtools

You can create a new "dummy user" specifically for creating rpm packages. That way, if something goes terribly wrong, the program or build process can't trash your files, or send your private files/keys to the world. At the very least, you should never create your packages as user root. 

You can create a new user named "makerpm" quickly by doing: 
 # /usr/sbin/useradd makerpm

Then log in as that special dummy user (makerpm). 

Once you're logged in as the user who is creating packages, create the directory structure in your home directory by executing (don't type the "$"): 
 $ rpmdev-setuptree

The "rpmdev-setuptree" program will create an "rpmbuild" directory in your $HOME directory. Underneath "rpmbuild" are a set of subdirectories (such as SPECS and BUILD), which you will use for creating your packages. The "rpmdev-setuptree" also creates an "~/.rpmmacros" file which will cause rpm and rpmbuild to use them when appropriate. 

Once you've set up the user account, you won't normally need to do these steps again.......
http://fedoraproject.org/wiki/Packag...ngPackageHowTo

Think that'll clear your doubts..

regards,

Ankur
__________________
-------------------------------------
"Live and let Live"
My blog
http://www.letmegooglethatforyou.com/
#fedora, #fedora-india,#fedora-social @ freenode


HP dv6226tx
Fedora 13
---------------------------------------
Reply With Quote
  #5  
Old 22nd February 2009, 05:26 PM
ov10fac Offline
Registered User
 
Join Date: Feb 2007
Location: Omaha Nebraska
Posts: 47
Nope

I tried your instructions and they do not work. When I attempt to execute rpmdev-setuptree as a user I get "command not found"

Thanks

Reply With Quote
  #6  
Old 22nd February 2009, 05:32 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
As PabloTwo mentioned earlier you need to install the 'rpmdevtools' package as well.
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
Reply

Tags
command, rpmbuild

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
Where is the generated rpm file of rpmbuild command? youhaodeyi Using Fedora 1 5th September 2008 08:41 AM
kernel rpmbuild: ~usr/src/debug/... not found ?!? duni Using Fedora 1 14th November 2006 10:56 AM
rpmbuild: command not found Stlgera Using Fedora 2 13th November 2005 09:00 PM
rpmbuild:command not found oshman Using Fedora 4 2nd May 2005 11:08 PM
RPMBUILD Command 07dcolem Using Fedora 1 28th November 2004 12:25 AM


Current GMT-time: 06:31 (Tuesday, 18-06-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