Command not found!!!

This is a discussion on Command not found!!! within the C Programming forums, part of the General Programming Boards category; Hi, I have installed Linux Redhat 7.1 in my system and had opted for the installation of C compiler. After ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    29

    Command not found!!!

    Hi,

    I have installed Linux Redhat 7.1 in my system and had opted for the installation of C compiler.

    After the installation, when I login as a user/root, I a not able to complier a c program, "command not found" error is occuring.

    Initially when Ihad loaded yahoo mesenger, I had to locate the exe of it at /usr/bin/ymessenger so that I could run it.

    Does the installation of C complier also need the same thing. I am not able to see the "man" of any of the C inbuilt functions.

    Please let me know how to run C programs in my Redhat7.1 OS.

    Ashesh

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    29
    Well, I did ry gcc stuff...but it didnt work. I will try to reinstall the package \. Hope that helps me

    Ashesh

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Are you doing all of this as root? If s, make a standard user. I have dealt with systems where the root's $PATH and user's $PATH are different, and user's $PATH might have gcc in it. Plus, it's bad karma to use rot for everything.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    29
    I tried doing that as a user as well as as root.
    But neither gcc nor cc seem to be working.
    ashesh

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    29
    Hi,

    the problem is that, i had posted my problem just before leaving the system.

    I tried to install as per the information provided by "vVv". I mounted the cd and when I searched for the packages, there was only "cpp" package and when i tried to install this, it gave the mesg "already installed". I tried to run a program using cpp filename.cpp, which didnot work as it said "stdio.h" and "iostream.h" not found.

    Now that I have returned I will download the gcc from the internet and install it.

    Thanks,
    Ashesh

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Puzzled.
    By silhoutte75 in forum C Programming
    Replies: 13
    Last Post: 01-21-2008, 04:17 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21