Thursday, February 23, 2012

HOW TO INSTALL AND WORK C PROGRAMS IN FEDORA SYSTEM

HOW TO INSTALL "C" COMPILER IN FEDORA:
STEP 1: Open your fedora Terminal window.
STEP 2: Connect Internet to your System.
STEP 3: Then type this commands.
LOG IN TO ROOT USER:
  Syntax: $su – (or) $su
  Syntax: $password: enter your root password.
  Syntax: [root-@local host]#
STEP 4: INSTALL GCC COMPILER OR C-COMPILER:
   Syntax[root-@local host]#yum install gcc*
STEP 5: Display the available packages.
STEP 6: Then install gcc compiler.
STEP 7: Finish the installation.

HOW TO WORK "C" PROGRAM IN FEDORA:
STEP 1: Open your Fedora Terminal window.
STEP 2: Then type this commands.
  Syntax: $vi sample.c then enter.
STEP 3: open the vi editor window.
STEP 4: Pres the insert "i" button.
STEP 5: Then type your "C" Program.
#include<stdio.h>
  void main( )
    {
      printf(" Welcom to C program ");
    }
STEP 6:Then save and quit your c program.
  syntax: press Escape key and  then type wq: then press enter key.

HOW TO COMPILE "C" PROGRAM IN FEDORA:
STEP 1: Compile your "C" program.
  syntax: $cc sample.c 
STEP 2: Find errors and correct the errors. 
STEP 3: Then save and close.

HOW TO RUN "C" PROGRAM IN FEDORA:
STEP 1: Type this command and run your "C" program.
  syntax: $./a.out
output: Welcome to C program
STEP 2: Close the terminal window.



7 comments:

  1. Boss,

    The best one i saw, useful for everyone.

    ReplyDelete
  2. Thts so cool Sir,, but PLZ tell us how to make yum client.

    ReplyDelete
  3. thanks but i am having problem on saving the c program when i press esc button am unable to type wq: plz help me out.

    ReplyDelete
  4. great .... thanks a lot . u understood my problem correctly.. thanks.

    ReplyDelete
  5. how to root the command

    ReplyDelete