This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help installing GCC compiler
- From: Ian Lance Taylor <iant at google dot com>
- To: Köplin Nina <nina dot koplin at smhi dot se>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 25 Mar 2013 08:32:00 -0700
- Subject: Re: Help installing GCC compiler
- References: <E7C7C2417F285645917FD9D434E590D9874397 at winserv301>
On Mon, Mar 25, 2013 at 8:10 AM, Köplin Nina <nina.koplin@smhi.se> wrote:
> Hej!
Hej!
> I´m totally new to GCC (and pretty new to compiling in general, by the way). I need it to compile a hydrological model that is written in C and the model homepage strongly recommends using the GNU GCC compiler. My questions:
>> Do I really have to install all those packages/tools specified here: http://gcc.gnu.org/install/prerequisites.html ?
>> And then: should I really follow every single step in the installation manual (C:\Program Files\GCC\gcc-4.8.0\INSTALL\index.html) or is there some shortcut if I only want to compile a code in C?
> Any help is appreciated!!
You did not mention which operating system you use. Most systems have
a prebuilt binary installation of GCC available. Certainly all
GNU/Linux systems do. So do Windows, Solaris, and many others. Based
on your questions I would recommend looking for a prebuilt
installation rather than trying to build it yourself.
To answer your questions: the easiest way to install the prerequisites
is to run the script contrib/download_prerequisites. That will fetch
the ones you need.
After doing that, yes, you really should follow every single step of
the installation instructions.
Ian