LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do find out whether i have gcc compiler installed? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-find-out-whether-i-have-gcc-compiler-installed-458886/)

ashlesha 06-27-2006 03:27 PM

how do find out whether i have gcc compiler installed?
 
hi,

i want to know what directory the gcc compiler resides in...
is there a standard directory? and is it called gcc?

i tried the find /gcc command..but that didnt work...
sorry abt v basic questions..
and thanks for answering them!

ashlesha.

pljvaldez 06-27-2006 03:32 PM

You usually find programs with the command locate or the command which. From the command prompt, type locate gcc and/or which gcc and/or whereis gcc. I would guess that it was put in /usr/sbin. Most programs are in /bin, /sbin/, /usr/bin, or /usr/sbin. sbin directories are usually not in your path, so you have to be root to run them (or add them to your path).

Nylex 06-27-2006 03:35 PM

gcc should normally be in /usr/bin and you shouldn't need to be root to use it.

ashlesha 06-27-2006 03:42 PM

Thank you!
found it in the /usr/bin


All times are GMT -5. The time now is 09:09 PM.