Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-27-2006, 03:27 PM   #1
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
Unhappy how do find out whether i have gcc compiler installed?


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!

Old 06-27-2006, 03:32 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
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).
Old 06-27-2006, 03:35 PM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
gcc should normally be in /usr/bin and you shouldn't need to be root to use it.
Old 06-27-2006, 03:42 PM   #4
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
Thank you!
found it in the /usr/bin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
GCC Compiler rr_rr_29 Linux - Software 2 10-17-2005 04:14 AM
GCC compiler .. pashupathinath Programming 1 10-21-2004 12:20 PM
GCC compiler aviceda Linux - Newbie 5 08-13-2004 06:55 AM
SuSE Linux 9.1, YaST says GCC installed, but Installers Say No Compiler Available Desert Linux - Software 1 07-24-2004 10:54 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration