LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora: which packages are needed to enable source compilation ? (http://www.linuxquestions.org/questions/fedora-35/fedora-which-packages-are-needed-to-enable-source-compilation-648053/)

arijit_2404 06-09-2008 10:55 AM

Fedora: which packages are needed to enable source compilation ?
 
Hi all,

I am using Fedora for quite some times. But I always stuck to the basics. Now I want to experiment little bit. I want to be able to install soft wares from source those aren't available as RPM file.

My question is, what are the minimum packages which need to be installed to enable source compilation? I have Fedora 9 DVD.

I also know 'make' is one of them. But don't know all needed packages.
Can anybody list the bare minimum packages I need to install?

b0uncer 06-09-2008 12:56 PM

I'm not quite sure of Fedora rpm packages, but typically you'll want a compiler collection (GCC; to work you'll need a compiler and a linker, or perhaps many), make utility, development libraries for the stuff you need and so on. Some distrubutions provide a meta package that itself doesn't "install" anything (not files anyway), but instead depends on the "needed tools" and when installed, draws in the rest of the herd. See if there's a package available that is called "build-essentials" or something that sounds similar.

When you compile a project, if it comes with a configure script (that you run as the first step in the compilation process), you can run that - it should fail if you don't have the needed tools. Then check the error message and maybe do a web search for it if you don't get what it means, and you should find out what you're missing. The minimal "compilation tools" aren't always enough, sometimes you need extra libraries and such, and that's what the configuration script checks for -- so pay attention to it's output (even when it succeeds; it might disable some functionality in the program if some pieces are not found, even if compilation of a functional program is possible).

arijit_2404 06-09-2008 01:05 PM

Yes, I've heard about build-essentials. but it is for Debian and derived OS only.
I don't know about fedora.

hlingler 06-09-2008 06:49 PM

Quote:

Originally Posted by arijit_2404 (Post 3179395)
Hi all,

I am using Fedora for quite some times. But I always stuck to the basics. Now I want to experiment little bit. I want to be able to install soft wares from source those aren't available as RPM file.

My question is, what are the minimum packages which need to be installed to enable source compilation? I have Fedora 9 DVD.

I also know 'make' is one of them. But don't know all needed packages.
Can anybody list the bare minimum packages I need to install?

yum groupinstall "Development Tools" "Development Libraries"

should get you the "basic" packages you asked for. There are more that are available, depending on what you intend to do:
yum groupinstall "GNOME Software Development" "X Software Development" "Java Development" "Legacy Software Development" "KDE Software Development" "Fedora Packager" "XFCE Software Development" "Web Development"

In addition, whatever applications/packages/source code you want to compile may have additional prerequisites.

V

arijit_2404 06-09-2008 10:04 PM

Thanks a lot
 
Quote:

Originally Posted by hlingler (Post 3179807)
yum groupinstall "Development Tools" "Development Libraries"

should get you the "basic" packages you asked for. There are more that are available, depending on what you intend to do:
yum groupinstall "GNOME Software Development" "X Software Development" "Java Development" "Legacy Software Development" "KDE Software Development" "Fedora Packager" "XFCE Software Development" "Web Development"

In addition, whatever applications/packages/source code you want to compile may have additional prerequisites.

V

Thanks a lot. This is what I wanted. :D

lazlow 06-10-2008 11:05 AM

Also be away that when a compile has a dependency you will need the -devel version of that dependency (in most cases) and not just the running version.

arijit_2404 06-11-2008 12:25 PM

Thanks for the tips. Sorry for late acknowledgment.


All times are GMT -5. The time now is 09:57 AM.