MinGW is another option for gaining access to POSIX commands and compilers in the Windows environment. Unlike Cygwin, which installs a POSIX Emulator, MinGW installs POSIX commands into the Windows CMD terminal. MinGW can also install its own POSIX like terminal called MSYS.

MinGW is also the easiest way to facilitate the use of DISLIN on a Windows based machine.

The page is designed to help Environmental Resources Engineering students in Engr 225, 325, and 326 install these software.

The page contains the following sections:

Installing MinGW

MinGW can be located here: www.mingw.org

MinGW has lots of documentation about how to install and configure its use. Installation instructions can be found here: http://www.mingw.org/wiki/Getting_Started

When installing packages, you should install

You can also really dig into the packages and select All Packages. You may want to investigate and install:

Pay close attention to the "Environment Settings" section. A link to this section can be found here:
http://www.mingw.org/wiki/Getting_Started#toc7

Please note that extra-care should be taken when performing the "Environment Settings"step. You can easily damage your computer's environment variables by carelessly performing this task. The objective here is to define or augment the user environment variables (not system environment variables) PATH with the path c:\MinGW\bin
Example:
PATH = c:\MinGW\bin

You can access the environment variables by going to the Windows Start Menu , right-clicking on Computer, and clicking on Properties. From there you can click on Advanced system settings and then you'll see the Environment Variables ... button on the bottom right of the System Properties windows.

 

If you installed MSYS, also pay close attention to the "After Installing You Should ..." section. A link to this section follows: http://www.mingw.org/wiki/Getting_Started#toc2

Once installed, you should be able to open Windows CMD by going to the Start Menu and searching for CMD and run MinGW.
Type mingw-get at the terminal to open the MinGW package manager. If the command opens the package manager, you've successfully installed MinGW. Congrats! If not, hit the forums or send me an e-mail.

Here's a primer on MSYS - http://gvsigce.sourceforge.net/wiki/index.php/Getting_started_with_MSYS

 

Installing DISLIN

From the DISLIN homepage:

DISLIN is a high level library of subroutines and functions that display data graphically. It is intended to be a powerful and easy to use software package for programmers and scientists that does not require knowledge of hardware features. The software is available for the programming languages C/C++, Fortran 77 and Fortran 90/95. For some operating systems, the languages Perl, Python, Java, Ruby, TCL and the C/C++ interpreter Ch are also supported.

DISLIN works well with MinGW. To install DISLIN, locate and download the distribution for your computer's architecture (32-bit or 64-bit) and GNU Fortran (MinGW) distribution. The distributions page can be found here: https://www.mps.mpg.de/dislin/distributions

See the documentation if you are trying to install this on a different operating system.

Once you have downloaded the distribution of interested, unzip its contents to a convenient location (a directory on your desktop) and read through the directions in readme.exe

Essentially you are going to run setup.exe and install the distribution into the directory
c:\dislin

Once installed, the remaining step is to specify the environment variables so that your Windows CMD terminal knows where to find the DISLIN commands. Detailed instructions are provided in the readme.exe documentation under part
d) Reconfigure the System. The main objective is to add or augment the user enviornment variables such that:

You can access the environment variables by going to the Windows Start Menu and right-clicking on Computer and clicking on Properties. From there you can click on Advanced system settings and then you'll see the Environment Variables ... button on the bottom right of the System Properties windows.

 

Once installed and configured, you can test if DISLIN is properly configured by typing gf95link at your Windows CMD prompt. If you get the gf95link help menu, DISLIN and MinGW are properly installed and configured.

Windows CMD test for DISLIN

The DISLIN online documentation can be found here: http://www2.mps.mpg.de/dislin/contents.html