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. |
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).
|
gcc should normally be in /usr/bin and you shouldn't need to be root to use it.
|
Thank you!
found it in the /usr/bin |
All times are GMT -5. The time now is 09:09 PM. |