LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install Gcc (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-gcc-488269/)

unknowwhere 09-30-2006 12:10 PM

How to install Gcc
 
hello
This is my problem. I have a source of C++. I want to Compile it in the Linux, I use Fedora Code 4.I asked many people about this and I was told that to compile the C++ source I have to have the GCC (GNU linux Compiler) im my FC but I don't know how to install GCC.
Please help me and Thanks.

ctkroeker 09-30-2006 12:38 PM

http://unclean.org/howto/gcchowto.html

Gzou 09-30-2006 12:57 PM

Basically, In linux, there are 2 main ways to install software :

-Compile from Source
-Install Binary packages

GCC is what is used when you want to compile software from source tarballs, but the problem is to install GCC from source you need another version of GCC already on your computer, which doesn't seem to be the case.

The other option is to install binary packages. I've never tried Fedora Core, but from what I hear it uses RPMs as binary packages.

(checking website....)

Yup ! So What I would suggest is to install GCC using pirut. According to the Fedora Core website, You go into your menu on the desktop, select Application, then Add/Remove programs. Then do a search for GCC, and install the RPMs.

That's about it from my point of view. Maybe someone who has fedora core on this forum can help you better.

But what i'm wondering is why to you need to compile the C++ source ? why not use GNU's equivalent, g++ ?


All times are GMT -5. The time now is 11:38 PM.