LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-16-2006, 08:24 AM   #1
pravinth
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
Question gcc installed or not???


hi friends, i am new to fedora and linux.
my problem is when i type gcc and enter my terminal says command not found.What it means? does it mean there is no gcc? or i have to set any path.am using fedora.
Thank you!
 
Old 11-16-2006, 08:38 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by pravinth
hi friends, i am new to fedora and linux.
my problem is when i type gcc and enter my terminal says command not found.What it means? does it mean there is no gcc? or i have to set any path.am using fedora.
Thank you!
One way to know if a command (application) is installed it to type "man <command>" No man page means probably not installed. Also, make sure that what you are looking for actually IS a command (gcc is).
If gcc is not installed, you can install it using the "add software" menu command, or in a terminal with yum. If you have the full Fedora distribution on DVD or several CDs, then gcc will be there. Otherwise, you can get it from a repository.

Try the menu command first.
 
Old 11-16-2006, 10:13 AM   #3
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
In Fedora Core, you can simply go to a terminal window, and at the command prompt type in:

rpm -q gcc

And then hit [enter]. You will be shown the version, if any, of gcc that is currently installed on your system.

If it is not installed, then you should be able to use Yum(installed by default on most standard installations of Fedora) to install it by switching to root and typing:

yum install gcc*

And then hit [enter]. It will run through some scans and updates of the packages available repositories that are configured, and then download and install all gcc packages and their dependencies.

Yum and RPM are a great duo for package management on Red Hat based distros.
 
Old 11-16-2006, 11:35 PM   #4
pravinth
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Mr.pixellany, Mr.Linville79,
thanks for your help.I will try it if it won't work i will post here.
Thank you very much.Its very kind of you guys-bye..
 
  


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
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 01:15 AM
can't get GCC installed Skaan Linux - Newbie 2 05-26-2005 11:21 AM
Installed gcc, g++ still problemmmmmmmm alirezan1 Linux - Newbie 2 11-24-2004 02:08 AM
What gcc do I have installed? Thaidog Linux - Newbie 2 09-27-2004 09:11 PM
cannot use gcc even though it's installed. levicc00123 Debian 2 09-07-2004 09:48 PM


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