public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help installing GCC compiler
@ 2013-03-25 15:10 Köplin Nina
  2013-03-25 15:32 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Köplin Nina @ 2013-03-25 15:10 UTC (permalink / raw)
  To: gcc-help

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!!
Nina

---
Nina Köplin
Hydrolog / Hydrologist
 
SMHI / Swedish Meteorological and Hydrological Institute
Affärsverksamhet - Produktion
SE - 601 76 NORRKÖPING 
www.smhi.se
 
E-post / Email: nina.koplin@smhi.se
Tel / Phone: +46 (0)11 495 85 41 
Besöksadress / Street address: Folkborgsvägen 17 
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help installing GCC compiler
  2013-03-25 15:10 Help installing GCC compiler Köplin Nina
@ 2013-03-25 15:32 ` Ian Lance Taylor
  2013-03-25 16:01   ` SV: " Köplin Nina
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2013-03-25 15:32 UTC (permalink / raw)
  To: Köplin Nina; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* SV: Help installing GCC compiler
  2013-03-25 15:32 ` Ian Lance Taylor
@ 2013-03-25 16:01   ` Köplin Nina
  2013-03-25 16:22     ` Jonathan Wakely
  2013-03-25 17:04     ` SV: " Tim Prince
  0 siblings, 2 replies; 5+ messages in thread
From: Köplin Nina @ 2013-03-25 16:01 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help installing GCC compiler
  2013-03-25 16:01   ` SV: " Köplin Nina
@ 2013-03-25 16:22     ` Jonathan Wakely
  2013-03-25 17:04     ` SV: " Tim Prince
  1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2013-03-25 16:22 UTC (permalink / raw)
  To: Köplin Nina; +Cc: Ian Lance Taylor, gcc-help

On 25 March 2013 16:00, Köplin Nina wrote:
> 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?

Cygwin has a prebuilt gcc package, you can install it from the Cygwin
setup tool.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SV: Help installing GCC compiler
  2013-03-25 16:01   ` SV: " Köplin Nina
  2013-03-25 16:22     ` Jonathan Wakely
@ 2013-03-25 17:04     ` Tim Prince
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Prince @ 2013-03-25 17:04 UTC (permalink / raw)
  To: gcc-help

On 3/25/2013 12:00 PM, Köplin Nina wrote:
> 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
>
>
>
In that case, you would choose a pre-built gcc from the cygwin install 
menu; probably gcc4 unless instructed otherwise.

-- 
Tim Prince

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-25 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25 15:10 Help installing GCC compiler Köplin Nina
2013-03-25 15:32 ` Ian Lance Taylor
2013-03-25 16:01   ` SV: " Köplin Nina
2013-03-25 16:22     ` Jonathan Wakely
2013-03-25 17:04     ` SV: " Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).