Connecting Tech Pros Worldwide Help | Site Map

Compiling & running C programs on Red hat 9.0

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 5th, 2007, 01:28 PM
Newbie
 
Join Date: Jan 2007
Posts: 1
Default 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:
Expand|Select|Wrap|Line Numbers
  1. gcc <filename1> -o <filename2>
  2.  
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 KUB365; January 9th, 2007 at 05:23 AM.
Reply
  #2  
Old January 5th, 2007, 08:55 PM
cassbiz's Avatar
Familiar Sight
 
Join Date: Oct 2006
Location: Florida
Posts: 203
Default

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

Expand|Select|Wrap|Line Numbers
  1. -bash-2.05b$ ./gcc <filename.0> ...........
  2.  

Last edited by cassbiz; January 5th, 2007 at 08:56 PM. Reason: typo
Reply
  #3  
Old January 8th, 2007, 03:05 AM
Loismustdie129's Avatar
Familiar Sight
 
Join Date: Aug 2006
Age: 18
Posts: 195
Default

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.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.