Compiling & running C programs on Red hat 9.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zinta
    New Member
    • Jan 2007
    • 1

    Compiling & running C programs on Red hat 9.0

    I recently installed red hat 9.0 on my comp. Wen i try to execute a C program in Vim then it gives error that gcc command not found. The command that i give is:
    Code:
    gcc <filename1> -o <filename2>
    on earlier version of red hat this command ws workin, but on 9.0 im gettin error. If anybody can help... thanx!
    Last edited by Niheel; Jan 9 '07, 06:23 AM.
  • cassbiz
    New Member
    • Oct 2006
    • 202

    #2
    I usually run the commands from the shell itself and not through Vim

    Depending on what features you have installed you may need to run a " ./ " in front of the command

    Code:
    -bash-2.05b$ ./gcc <filename.0> ...........
    Last edited by cassbiz; Jan 5 '07, 09:56 PM. Reason: typo

    Comment

    • Loismustdie129
      New Member
      • Aug 2006
      • 194

      #3
      I usually run the compiler through the Terminal in Fedora 6. It sounds like you don't have gcc. Did you try to look in your /usr/bin file to see what compiler you have installed.

      Comment

      Working...