LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-19-2004, 01:07 PM   #1
ltt19
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
rpmbuild: command not found


Hi everyone!

I was trying to compile a file.scr.rpm file with rpm --rebuild (I do not no if it is correct), but i was receiving a message that the file does no exist.

So I've searched over the internet an then I found the rpmbuild, but my nix says that this command does not exist? Why? Is is a problem from conectiva? What should I do?

Any help would be very appreciated,

Thanks in advance
ltt19
 
Old 11-19-2004, 01:17 PM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
What distribution is this running? usually you can get this by running 'cat /etc/issue'
 
Old 11-26-2004, 03:01 AM   #3
pwardy
LQ Newbie
 
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
I'm running Fedora Core 3 and am having the same problem.
I need to compile a driver, and so need the kernel source (which is no longer provided in FC3), so I have downloaded and installed (with RPM) the kernel-source.src.rpm. This is fine, but now I need to use RPMBUILD to actually generate the source code from the SPEC file.
RPMBUILD is not on my system! I cannot find reference to any other package I need to install to get it. Is it separate from RPM? What am I doing wrong?

Thanks Pward
 
Old 11-26-2004, 03:06 AM   #4
Boyer
Member
 
Registered: Oct 2004
Location: Saint John, New Brunswick, Canada
Distribution: Mandrake 10.0 w/ KDE 3.3.1
Posts: 42

Rep: Reputation: 15
I had to download rpmbuild myself for Mandrake 10.0 Community.

Just go to www.rpmfind.net or www.pbone.net (or if you have something like urpmi) and search "rpm-build". Just like it is in the brackets. Then, get the rpm that is approprite for your system, install it, and you should be good to go.

Good luck!
 
Old 11-26-2004, 03:50 AM   #5
pwardy
LQ Newbie
 
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
Thanks, with your help, I have managed to find it on the Red Hat server at:

download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/Fedora/RPMS/rpm-build-4.3.2-21.i386.rpm

Cheers,

Pward
 
Old 11-26-2004, 03:59 AM   #6
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by pwardy
I'm running Fedora Core 3 and am having the same problem.
I need to compile a driver, and so need the kernel source (which is no longer provided in FC3), so I have downloaded and installed (with RPM) the kernel-source.src.rpm. This is fine, but now I need to use RPMBUILD to actually generate the source code from the SPEC file.
Doesn't it violate GPL to distribute the Linux kernel without making the source code available as well?

Also, when you run rpmbuild with a SPEC file, you will also need to have the source file in the SOURCES directory. It is different than when you already have the SRPM (src.rpm) file, which contains both the SPEC file and source code.
 
Old 11-28-2004, 03:11 AM   #7
pwardy
LQ Newbie
 
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
The source code is provided, but it must be downloaded separately now, just the same as all of the other source RPM's.

By the way, just to complete the story, I did find that RPM-BUILD is provided with the initial core as an RPM (in object form, I still couldn't find a source RPM file on the Fedora site).

All I had to do under Fedora Core 3 is go to the GUI Add/Remove Applications and install Development Tools. This installs by default RPM-BUILD along with another 50 or so development applications. Easy ! (when you know).

As far as installing the source, after downloading kernel-2.6.9-1.667.src.rpm (38.4 Mb) I installed it with
rpm -ivh kernel-2.6.9-1.667.src.rpm
which puts some directories in /usr/src/redhat and then ran
cd /usr/src/redhat/SPECS
rpmbuild -bp --target=i686 kernel-2.6.spec
This builds the entire source tree

Thanks for everyone's help

Pward
 
Old 11-28-2004, 12:34 PM   #8
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by pwardy
As far as installing the source, after downloading kernel-2.6.9-1.667.src.rpm (38.4 Mb) I installed it with
rpm -ivh kernel-2.6.9-1.667.src.rpm
which puts some directories in /usr/src/redhat and then ran
cd /usr/src/redhat/SPECS
rpmbuild -bp --target=i686 kernel-2.6.spec
This builds the entire source tree
Glad you got it all figured out.

Just curious, could you have simply run "rpmbuild --rebuild kernel-2.6.9-1.667.src.rpm" instead of installing the SRPM first and then running the rpmbuild process on the SPEC file? The latter would not be necessary unless you needed to change the specs in the SPEC file.
 
  


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
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
cd.. command not found?!? xtremcoder Fedora 4 10-06-2004 04:43 PM
Problems with libpng not found when using rpmbuild on a .src file superduty455 Linux - Software 5 09-16-2004 03:15 PM
rpmbuild: command not found zebra5 Linux - Software 3 10-08-2003 02:31 PM
rpmbuild-command not found arnold_it Linux - Software 4 08-11-2003 08:54 AM

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

All times are GMT -5. The time now is 03:08 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