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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-19-2004, 01:07 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 1
Rep:
|
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
|
|
|
11-19-2004, 01:17 PM
|
#2
|
Member
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138
Rep:
|
What distribution is this running? usually you can get this by running 'cat /etc/issue'
|
|
|
11-26-2004, 03:01 AM
|
#3
|
LQ Newbie
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18
Rep:
|
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
|
|
|
11-26-2004, 03:06 AM
|
#4
|
Member
Registered: Oct 2004
Location: Saint John, New Brunswick, Canada
Distribution: Mandrake 10.0 w/ KDE 3.3.1
Posts: 42
Rep:
|
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!
|
|
|
11-26-2004, 03:50 AM
|
#5
|
LQ Newbie
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18
Rep:
|
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
|
|
|
11-26-2004, 03:59 AM
|
#6
|
Member
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915
Rep:
|
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. 
|
|
|
11-28-2004, 03:11 AM
|
#7
|
LQ Newbie
Registered: Nov 2004
Location: Hong Kong
Distribution: Fedora Core 4
Posts: 18
Rep:
|
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
|
|
|
11-28-2004, 12:34 PM
|
#8
|
Member
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|