Installing Gnu Fortran and Eclipse on Windows

 

 

Installing 64 Bit Java (needed for Eclipse)

  1. Check and make sure you have a 64 bit version of Java. Open a Command window, and type java -version. You should get a response that shows whether you have the 64 or 32 bit version installed. If this does not work, it is because the Java directory is not in your path. To fix this type Advanced System Settings into Cortana and open the control panel; select the Advanced tab; select Environment Variables (the bottom one); scroll down in the bottom menu until you find the Path variable and then add the directory where Java is installed in your computer to your path (usually C:\Program Files\Java - you can search for it manually).
  2. If necessary install a 64 bit version of Java - navigate to http://java.com/en/download/manual.jsp. Install the 64 bit windows Offline version. Note also that Google Chrome will no longer run Java plugins (without rather extensive manual configurations to the browser) so you may need to use IE or any other browser for this step. Every other installation step below will work in Chrome.

Installing GNU Fortran

  1. Download and install MinGW. To do this navigate to http://sourceforge.net/projects/mingw/ and download the installer (be careful to select the mingw-get-setup.exe link; sourceforge sometimes tries to fool you into dowloading other stuff). Note that the program you download is just the installer, not MinGW. Navigate to your downloads folder and execute it. It will pause for a while then show a menu - select Continue. On the next menu select the compilers you want to install - (you will need at least GNU fortran for this class, but if you have space you can install all the other compilers too - they will all work in Eclipse). After you checked the links go to Installation (top left) and select Apply Changes, then Apply on the next window. Further installation actions will follow and take a long time. Random windows will pop up during the processs.
  2. Navigate to the MinGW\bin folder (it should be in your root directory) and find the file called 'mingw32-make.exe' Copy it, and rename the copy make.exe
  3. Make sure the MinGW\bin directory is in your Path (it will not be there by default). To add it go to Start>; right click Computer and select Properties; go to Advanced System Settings; select the Advanced tab; select Environment Variables (the bottom one); scroll down in the bottom menu until you find the Path variable and then add the MinGW\bin directory at the end (be careful not to delete your existing path).

 

Installing Eclipse (If you already have Eclipse Mars installed you can install photran instead of the full Eclipse installation)

1. Browse to https://eclipse.org/downloads/ (you can click on the 'download packages' link just below the Download Oxygen) and download Eclipse for Parallel Application Developers. Extract the zip file to any convenient directory (you probably cannot extract it to your Program Files folder but that doesn't matter). The extraction might pause for a long time - don't panic, this is normal.

2. Navigate to the directory you just extracted - you should see the eclipse executable. Double click to start eclipse. You can also drag the icon to your Start menu to add a short-cut there.

3. You will be prompted for a directory where you will keep all your Eclipse projects (each time you create a project it will make a sub-directory in this folder. Since you will be using GIT to do version-tracking for you in this class all your files will actually get moved when you connect to GIT, but Eclipse still thinks they are in this folder).