Visit Jeremy's Blog.
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 04-13-2004, 12:36 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
EASY! where's gcc...or cc?

Hey everyone,
I know this is a no brainer... but .....
i'm being told by various sources that there should be c compiler in linux called either cc or gcc. The thing is, whn i type this in, it says "bash: [g]cc command not found"
i'm also being told that it can reside in /usr/bin, /usr/local/bin /usr/ccs/bin so on and so forth....... but alas to no avail. Ive installed a couple of rpms that mention gcc & the like, but it still refuses to recognise gcc or cc
My question is this:
Where is it?!!
& if i need to install it, how do i install it.
Hail President Scroob!
Old 04-13-2004, 12:41 PM   #2
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
'cc' is usually just a link to 'gcc'. If you type 'gcc' and it says 'command not found', then you probably need to install it.
Old 04-13-2004, 04:46 PM   #3
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
Try this link to find RPM's

I had the same problem when I installed Mandrake 9.2 and had to install the gcc compiler. Actually I installed g++ so I could compile C++ programs and that is the site I used to find it.
Old 04-13-2004, 06:20 PM   #4
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
You could also try typing whereis gcc. This will (hopefully) show you where the executable binary file is (the programme), and any other associated files. Below is an example of what my Mandy 9.1 system would show:
[gsewell@grants gsewell]$ whereis gcc
gcc: /usr/bin/gcc /usr/bin/gcc3.2-version /usr/share/man/man1/gcc.1.bz2
If it comes back with nothing, then it hasn't been installed, and you should check your distribution's installation CDs. Very few distros come without a compiler (usually things like router/firewall distros), so it should be on there somewhere!
Old 04-14-2004, 04:11 AM   #5
LQ Newbie
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Crakin'! It worked. Thanks All!


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
easy connect not easy in suse greg collins Linux - Newbie 11 03-30-2006 08:31 PM
Easy urpmi ,no easy send mail. akihandyman Linux - General 2 12-27-2004 03:15 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Linux4RegularGuys - EASY FTP setup using vsftpd - READ THIS FOR EASY HELP DropHit Linux - Networking 4 11-25-2004 03:44 PM
gcc (easy question) trpn Linux - General 2 03-12-2003 03:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 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