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 21st December 2004, 04:21 PM
Der Hanseat Offline
Registered User
 
Join Date: Sep 2004
Location: near Frankfurt am Main
Posts: 22
Question How to build *-devel-rpms?

Hello,

here is a question which applies to more than just Fedora Linux: How do I build a <program>-devel RPM file from the sources? I know how to compile a program by using the triple jump of
  • ./configure
  • make
  • make install or checkinstall, respectively.
However, in some cases installing such an RPM file won't work due to failing dependencies. Existing program packages will complain through RPM that <program>-devel is missing although all files would be present.

I understand that this is because of the internal logic of the RPM database system. So my question is: How can I build the required "...-devel-...rpm" so that the dependencies are all served?

An example:
I tried to install brand new glib-2.6.0 (as self-made glib2-2.6.0-1.i386.rpm for Fedora Core 2). No errors during configuration, preparation and complilation. When I tested rpm install, the reply was that existing glib2-devel-2.4.8-1.fc2 needed glib2-2.4.8-1. So I tried to remove glib2-devel-2.4.8-1.fc2.i386. However, a long list of various "-devel-" packages which all depended on glib2-2.4.8-1 followed.

So I gave up for now. Any ideas?

Thanks a lot in advace! Cheers, der Hanseat

Last edited by Der Hanseat; 22nd December 2004 at 01:06 PM. Reason: Correction of error
Reply With Quote
  #2  
Old 21st December 2004, 04:37 PM
mccabemt Offline
Registered User
 
Join Date: Aug 2004
Posts: 59
devel packages are specified in the rpm's spec file. They generally include header files and other things that would only be used for programming.
Reply With Quote
  #3  
Old 22nd December 2004, 04:08 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Perhaps you are better off working with the Fedora source rpms.

Seems like you are trying to start from scratch with the source files. Source rpms have this source but with a spec file to enable it to build on Fedora and fit in with the version system.

Try downloading the source rpm and reading up on the rpmbuild command.
Reply With Quote
  #4  
Old 22nd December 2004, 01:18 PM
Der Hanseat Offline
Registered User
 
Join Date: Sep 2004
Location: near Frankfurt am Main
Posts: 22
Thanks for your answers, Jman and maccabemt.

@ Jman,
I guess you're perfectly right. However, if I'd follow your suggestion, I could as well install the proper RPMs without worry. This is my usual way to update my FC2.

I wanted to now how to proceed if a FC-custom-built RPM, source or binaries, does not yet exist. I will have a close look to rpmbuild.

BTW: I was looking in several HowTos from The Linux Documentation Project and started some Google serches before I asked you here.

@ maccabemt,
Thanks for the elucidation. I am certainly not a programmer but whenever I want to compile a program on my own, the system asks for those <name>-devel-<version>.rpm files. When I configure and build my own RPMs, they contain almost always the contents of the devel RPM, too. However, the rpm program does not seem to realise this so it prints error messages on the screen.

Thanks again and merry Christmas to all of you from Der Hanseat
Reply With Quote
  #5  
Old 22nd December 2004, 09:21 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
There also is the option of asking a Fedora packager to create the spec file and rpm for you. Third party repositories and perhaps Fedora Extras might be a good place for this.
Reply With Quote
  #6  
Old 23rd December 2004, 12:56 AM
Finalzone's Avatar
Finalzone Offline
Community Manager
 
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,371
You can also to a program called fedora-rpmdevtools available at Fedora Extras. It allows you to build the rpm from your home directory eliminating the need to use root.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
Reply With Quote
Reply

Tags
build, develrpms

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
How to build your own RPMS (including kmods) Firewing1 Guides & Solutions (No Questions) 193 6th September 2010 06:02 PM
Compiling Tarballs, Devel RPMs? kpedersen Using Fedora 5 18th November 2006 03:28 PM
devel rpms sangfroid Using Fedora 1 17th October 2006 04:51 PM
Install kernel-devel and build source code tree Michael Harris Installation and Live Media 2 20th February 2006 09:27 PM
build rpms jim Using Fedora 0 30th April 2005 05:50 AM


Current GMT-time: 07:42 (Thursday, 20-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