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 09-23-2008, 12:18 PM   #1
kallinux
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
GCC command not found error


hi all,

iam very new to linux OS . i just installed LINUX 5 in my system and when i try to do C programs and when i compile it either using GCC or CC it is giving "GCC command not found" or "CC command not found"

please help me how to rectify this error and how to install GCC and run it.
 
Old 09-23-2008, 12:24 PM   #2
kallinux
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
i installed RED HAT LINUX 5 and it was successfull. but i could not compile any C programs and iam getting "GCC command not found" error......i tried to install GCC seperately but not successful......
 
Old 09-23-2008, 12:49 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by kallinux View Post
i tried to install GCC seperately but not successful......
What does this actually mean? Please tell us exactly what you did and why the process was "not successful". It's difficult to help with so little information.
 
Old 09-23-2008, 01:02 PM   #4
kallinux
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
What does this actually mean? Please tell us exactly what you did and why the process was "not successful". It's difficult to help with so little information.
ok. forget about my GCC installation......just tell me the steps to install GCC compiler .....linux OS installation was succefful but iam unable to compile C/C++ programs and iam getting "GCC command not found" message.....i couldnt compile either GCC or CC......i went to internet looking for GCC sourcecode and i got it at "http://gcc.gnu.org/mirrors.html"......and i got mirror sites"ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/"......and i got a few files in that infrastructure,libstdc++,relaeses,snapshots,summit files are there....how to donload these files ?.....say for example i right clicked on libstdc++ copy and paste in my computer it is giving infinite time to download......iam unable to download all the files from ftp link.......plz tell me how to avoid infinite time download?

Last edited by kallinux; 09-23-2008 at 01:05 PM.
 
Old 09-23-2008, 01:07 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Use your distro's package manager. I assume RHEL provides documentation, so you should find it and read it. Edit: relevant documentation can be found here.

Last edited by Nylex; 09-23-2008 at 01:39 PM.
 
Old 09-23-2008, 11:57 PM   #6
whk
Member
 
Registered: Jun 2005
Posts: 200

Rep: Reputation: 35
peruse here
http://www.cyberciti.biz/faq/howto-i...piler-on-rhel/
Also, checkout the RH manual from your CD too.
 
  


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
gcc : command not found PankajDS Linux - General 17 10-19-2007 03:43 AM
gcc compile error (-lmysql: command not found) xface66 Programming 2 04-13-2007 10:00 AM
gcc: command not found tds2000_us Fedora 1 08-03-2006 09:02 AM
gcc: Command not found Lastomega Linux - Newbie 12 03-31-2006 11:28 PM
Error Message gcc: Command not found Schmurff Fedora 2 09-27-2004 01:23 PM


All times are GMT -5. The time now is 07:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration