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 2nd October 2008, 11:08 PM
Johnny England Offline
Registered User
 
Join Date: Mar 2008
Posts: 43
What exactly do I need to build software from source???

Hello all... I have run into a few issues with installing software packages from source. I am running Fedora 8, and would like to build the latest, or near-latest, release of, for example, Banshee (1.00 or later). Every time I begin to build, I run into packages that I do not have, or errors that I am not quite sure what to do with. Is there just a general list of packages that I need in order to build most software from source? Also, what exactly do I need to use as far as commands go? I have used ./configure, make, and make-install... but again, I run into trouble.

Thank you in advance.

Johnny England
Reply With Quote
  #2  
Old 2nd October 2008, 11:33 PM
DavidMcCann Offline
Registered User
 
Join Date: Jul 2008
Location: London
Posts: 458
Firstly, do you really need to build the very latest Banshee? Won't the repository version do? If you get programs from the repository, you not only avoid the sort of problems you've run into, but you have an easy way to keep them updated later on.

When it comes to building from source, I'm afraid it's just a fact of life that some compile and install like clockwork, others have you tearing your hair. The README or INSTALL file with the source should tell you what you need, and it's worth reading the software's home page on the web. If the author forgets to tell you something, all you can do is start over and get the missing package. The list of possible package that might be used is far to large to be listed. In some cases, the problem is not that you haven't got it, but that the latest version of the program requires the latest version of the dependency: another problem that the repository system avoids.

As for errors reported when you try to compile, if you don't know what they mean then you're unlikely to be able to fix them! Report them, exactly, to wherever the programs bugs are supposed to be reported to and hope for the best. If you get a program via Sourceforge, you may find it has a discussion group there where you can raise your problems. You can always try the Software section here!
Reply With Quote
  #3  
Old 2nd October 2008, 11:34 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Compile using koji src rpm. See docs.
Reply With Quote
  #4  
Old 3rd October 2008, 04:05 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by Johnny England View Post
Hello all... I have run into a few issues with installing software packages from source. I am running Fedora 8, and would like to build the latest, or near-latest, release of, for example, Banshee (1.00 or later). Every time I begin to build, I run into packages that I do not have, or errors that I am not quite sure what to do with. Is there just a general list of packages that I need in order to build most software from source? Also, what exactly do I need to use as far as commands go? I have used ./configure, make, and make-install... but again, I run into trouble.

Thank you in advance.

Johnny England
The short answer is this: you'll definitely need a compiler (usually gcc) and make. You'll need devel libs for any dependency libs (for example, if what you're building depends on cairo, you'd want to run "yum install cairo-devel"). Depending on the software, you may need the kernel headers or even full kernel source, but that's usually for software that runs using loaded kernel modules.

You mention that you "run into packages that I do not have, or errors that I am not quite sure what to do with". First, you could try posting your errors here and somebody could probably tell within a few seconds what you're missing.

Second, if the configure script says something like "couldn't find foobar" or whatever, usually you'll want to install the devel packages for foobar, using (often) "yum install foobar-devel".

It may just be best to install the whole shebang of devel tools to make sure you have everything (or nearly so) for building. It is a bit of a drag on hard drive space, though. I believe the command would be:
Code:
yum groupinstall "Development Tools"
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #5  
Old 3rd October 2008, 04:08 AM
wvn's Avatar
wvn Offline
Registered User
 
Join Date: Jul 2008
Location: Mir space station
Age: 35
Posts: 738
i agree with tjvanwyk that the dev tools are a drag. after installing them the box was significally slower and louder
Reply With Quote
  #6  
Old 3rd October 2008, 04:12 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by wvn View Post
i agree with tjvanwyk that the dev tools are a drag. after installing them the box was significally slower and louder
Uhh... really?

I was just referring to the drag on hard drive space. They're going to take up some hard drive space. If you're not using them, they're just sitting there taking up space. Depending on your hard drive space that may or may not be a problem. But if you're not using them, the system will ignore them - having build tools and devel libs installed shouldn't make your system run poorly.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #7  
Old 3rd October 2008, 04:23 AM
wvn's Avatar
wvn Offline
Registered User
 
Join Date: Jul 2008
Location: Mir space station
Age: 35
Posts: 738
Yes. I installed a couple of other stuff as well after that. My notebook was much warmer and louder
Reply With Quote
  #8  
Old 3rd October 2008, 04:30 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Hmm... really. Having devel tools installed shouldn't cause a performance drag. They'll take up HD space but I can't imagine why just having them installed would increase the load on physical resources. If you're not using them to build, they're just sitting there.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #9  
Old 3rd October 2008, 05:08 AM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
A hit on performance is odd .The only exception i can think of ( right now) is if a running program , say Gnome, was built with -debug and the debugger is running .
Other than something odd like that there should be NO hit on system performance,just drive space.
Whenever i build a new( unfamiliar) program i DO read the README,INSTALL or /doc folder and in the case of image magick the /www/index.html file .
Then i READ the website , if there is one, sometimes there isn't .

If the readme and install files are of no help on a configure error run " ./configure --help" this is something i do before i run configure .Most programs will want to install in /usr/local I want them in /usr or /usr/opt ( ./configure --prefix=/usr )
If ./configure --help just gives you the standard " boiler plate" then read the code
and look at the #include<something???.h> to make a guess as to what is needed .
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #10  
Old 3rd October 2008, 05:40 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Quote:
Originally Posted by Johnny England
What exactly do I need to build software from source???
  • A large assorment of magic wands.
  • A henhouse-full of chickens for use in voodoo sacrifices.
  • Skill at rain-dancing, prestidigitation, and other slight-of-hand tricks.
  • A copy of "UGH!", "Linux Bible", or any book on witchcraft with a wide assortment of magical formulas.
  • A masochistic bent and a penchant for self-flagellation.
V
Reply With Quote
  #11  
Old 3rd October 2008, 05:45 AM
wvn's Avatar
wvn Offline
Registered User
 
Join Date: Jul 2008
Location: Mir space station
Age: 35
Posts: 738
yes yes. much better
Reply With Quote
  #12  
Old 3rd October 2008, 06:04 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
Quote:
Originally Posted by Hlingler View Post
  • A large assorment of magic wands.
  • A henhouse-full of chickens for use in voodoo sacrifices.
  • Skill at rain-dancing, prestidigitation, and other slight-of-hand tricks.
  • A copy of "UGH!", "Linux Bible", or any book on witchcraft with a wide assortment of magical formulas.
  • A masochistic bent and a penchant for self-flagellation.
V
Or, a baby's arm holding an apple.

So what about the answer guys?
Code:
yum install kernel-devel kernel-headers gcc
for starters? Maybe
Code:
yum groupinstall 'Development Tools'
thrown in?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
Reply

Tags
build, software, source

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
xen build a guest source glums Servers & Networking 5 20th November 2007 03:25 PM
How to build your own firefox rpm from source mtl2002 Guides & Solutions (No Questions) 219 4th February 2007 01:17 AM
Build rpm from source rpm nocolour Using Fedora 2 24th April 2004 12:24 PM


Current GMT-time: 10:44 (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