Find the answer to your Linux question:
Results 1 to 3 of 3
recently i have installed fedora 13 my laptop but when i try to compile a c program it says that gcc command not found. i think repo file must be ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    5

    Cool c program is not compiling in fedora 13

    recently i have installed fedora 13 my laptop but when i try to compile a c program it says that gcc command not found.

    i think repo file must be created first but i dont know how to create a repo file in fedora 13
    or is there vany other solution.

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Location
    Maryland, USA
    Posts
    83
    Then you need to install gcc, either through your software installer/manager or from the command line, whatever works for you and Fedora. In distros that use apt, you would use a command like:

    Code:
    sudo apt-get install build-essential
    but I don't know if that applies in Fedora.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    44
    I've never had any problems with gcc, though I rarely use it as there are so many other programming languages to use. I've found that when installing, Linux generally wants to install it by default, but I think you can tell it not to. Since the whole OS revolves around C, it's a good idea to let it. That way you can install the kernel files and recompile it whenever you want (assuming there is enough disk space). It might even be there somewhere, just not in the path. If you used install CDs or a DVD, it should be pretty easy to find it there if indeed it isn't installed. I used to like C and C++, but I've since switched over to Java. I got tired of trying to match up header files and all that stuff, and Java is a lot easier for me to handle if I'm taking on a good sized project. Plus you can get the JDK and NetBeans for nothing, and most OS's will run Java programs (and browsers too). But for the die-hard C (and C++) generation it's the language of choice. Check if the package is installed first, and change your path if it is, otherwise you can install it any number of ways.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...