LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc installed or not??? (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-installed-or-not-502186/)

pravinth 11-16-2006 07:24 AM

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!

pixellany 11-16-2006 07:38 AM

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.

Linville79 11-16-2006 09:13 AM

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.

pravinth 11-16-2006 10:35 PM

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..


All times are GMT -5. The time now is 03:06 AM.