LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-13-2004, 11:36 AM   #1
presidentscroob
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.
TA!
Hail President Scroob!
 
Old 04-13-2004, 11:41 AM   #2
aaa
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, 03:46 PM   #3
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Windows Vista/ XP/ Mepis
Posts: 304

Rep: Reputation: 30
Try this link to find RPM's
http://rpmfind.net/

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, 05:20 PM   #4
Thymox
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:
Code:
[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, 03:11 AM   #5
presidentscroob
LQ Newbie
 
Registered: Apr 2004
Posts: 2

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


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


All times are GMT -5. The time now is 10:32 AM.

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