This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
SV: Help installing GCC compiler
- From: Köplin Nina <nina dot koplin at smhi dot se>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 25 Mar 2013 16:00:59 +0000
- Subject: SV: Help installing GCC compiler
- References: <E7C7C2417F285645917FD9D434E590D9874397 at winserv301> <CAKOQZ8xYjovU0jgAsNpuN=tw3nRYfNnt1fhth-05xh_AiRdnaw at mail dot gmail dot com>
Thanks for your answer Ian!
I´m using Windows 7 but the model I want to compile and run needs a Linux or UNIX platform so I installed Cygwin (as suggested on the model homepage). Does that mean I should get a prebuilt binary installation for Linux then or would I still have to look a one for Windows?
Thanks again, Nina
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