Results 1 to 3 of 3
hello,
i am trying C program but while compiling with gcc it is showing command not found.i tried by exporting the PATH of gcc but still it is not executing:I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-06-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 6
command not found
hello,
i am trying C program but while compiling with gcc it is showing command not found.i tried by exporting the PATH of gcc but still it is not executing:I am totally confused:
please tell me how to fix command not found in centos???
- 05-06-2010 #2
Hi,
when I get it right you try to start gcc from the shell.
First, find the program:
(as root)I assume it sits somewhere in /usr/binCode:find / -name gcc
Check if that directory is within the path
If it is, it should run, if not, add the pathCode:echo $PATH
You might want to add this path to your .bash_profile file in your home directory (hidden).Code:export PATH=$PATH:/usr/bin
If a module is not found, check if it is installed:
for gcc this is
My second thought is that you want to call a program from C - in that case use the full path in the command line.Code:yum list installed gcc
- 05-07-2010 #3Just Joined!
- Join Date
- May 2010
- Posts
- 6
thanks buddy
solved the problem
join to FOSS
Linux Rocks!!!


Reply With Quote
