Linux - SoftwareThis 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.
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.
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?
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?
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.