Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am having trouble trouble finding an installed by default compiler on Fedora18. Where is it?

If strangely no compiler is included in the core distribution, is there a preferred compiler for casual users, needing to compile a package from source?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The native C compiler (meaning, the compiler used to compile the system) on all GNU/Linux systems including any version of fedora is gcc.

It is not necessarily installed by default, however, because a pre-compiled (binary distro) system does not need one to install or function.

yum install gcc should get you what you are after. If you are building from source tarballs put together with autotools ("configure, make, install"), you'll also want tar and make, obviously.

So at minimum, either as root or sudo:

yum install gcc tar make

A lot of packages will require more than this; eg. if there are C++ parts, you'd also need a C++ compiler (on fedora, the gcc-c++ package).

Thanks to jordanm for pointing out a group install:

yum groupinstall "Development Tools"

Again, keep in mind it is not really possible to cover everything that could possibly be needed for any package, but hopefully the configure script provides helpful clues when something is missing.

share|improve this answer
    
Are there any other packages, commonly required when compiling packages source code: maketool, Doxygen, binutils, etc.? A command-line of the type su -c "yum install essential packages for native toolchain" would be quite helpful! –  Vorac Apr 15 '13 at 18:52
    
There may be but I'll admit ignorance. You probably want make and tar (I added a note about that) but, beyond whatever particular -dev packages, I think that's it. The autoconf package is used to create configure scripts, but they should run on their own. They like to see various things from coreutils (gawk, etc) but those should be there already. –  goldilocks Apr 15 '13 at 19:05
3  
@vorac - You want yum groupinstall "Development Tools" –  jordanm Apr 15 '13 at 19:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.