How do I install gfortran (via cygwin and etexteditor) and enable ifort under Windows XP?

Posted by bez on Super User See other posts from Super User or by bez
Published on 2009-10-16T16:31:41Z Indexed on 2012/09/27 3:40 UTC
Read the original article Hit count: 164

Filed under:
|
|

I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.

Here's what I've done so far:

  1. Installed the e text editor.
  2. Installed Cygwin via the "automatic" option inside e text editor.
  3. I need to compile some Fortran files so via the "manage bundles" option I installed the Fortran bundle as well.

However, when I select "compile single file" I get an error saying gfortran was missing, and then that I need to set the TM_FORTRAN variable to the full path of my compiler.

I tried opening a Cygwin bash shell at the path mentioned (.../bin/gfortran), but the compiler was nowhere to be found.

Can someone tell me how to install this from the Cygwin command line? Where do I need to update the TM_FORTRAN variable for the bundle to work?

Also, how do I change the bundle "compile" option to work with ifort (my native compiler) on Windows? I've read the bundle file, but it is totally incomprehensible to me. Ifort is a Windows compiler, invoked simply by ifort filename.f90, since it is on the Windows path.

I know this is a lot to ask of a first time user here, but I really would appreciate any time you can spare to help.

© Super User or respective owner

Related posts about Windows

Related posts about windows-xp