LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
Unhappy 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.
 
Old 06-27-2006, 04:32 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
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, 04:35 PM   #3
Nylex
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, 04:42 PM   #4
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

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


Reply


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 04:07 AM
GCC Compiler rr_rr_29 Linux - Software 2 10-17-2005 05:14 AM
GCC compiler .. pashupathinath Programming 1 10-21-2004 01:20 PM
GCC compiler aviceda Linux - Newbie 5 08-13-2004 07:55 AM
SuSE Linux 9.1, YaST says GCC installed, but Installers Say No Compiler Available Desert Linux - Software 1 07-24-2004 11:54 AM


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

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