1. Download and run the Cygwin installer (setup.exe).
Website to download: http://cygwin.com/index.html
2. A window titled Cygwin Net Release Setup Program appears. Click Next to get started.
3. Choose A Download Source: Accept the default ("Install from Internet") and click Next.
Choosing the default "Install from Internet" causes the files you will choose in a later step to be downloaded first and then validated and installed. The other choices allow you to perform this procedure in two steps.
4. Select Root Install Directory: Accept the defaults ("C:/cygwin", All Users) and click Next.
6. Select Your Internet Connection: The default should be correct for most users. Change it only if you encounter problems.
9. If you wish to do a custom installation, click the View button so that the indicator to its right changes from "Category" to "Full".
To select a package for installation, click on its rotating selector (in the New column) to cycle through the available choices until a version number appears. In most cases, you should choose the highest version number from those that are available. When you have completed your selections,
10. Click next. The downloading process begins once the packages have been selected. The installer indicates its progress.
11. Create Icons: Unless these icons already exist from a previous Cygwin installation, make sure the boxes are checked and click Finish.
To begin, click on the Cygwin desktop icon,
Test Cygwin and installed packages:
Type the following commands:
$ ls -l (list files in current directory)
$ cygcheck -c (list installed packages in alphabetic order)
$ cd c: (change to C-directory)
Test the C compiler:
$ gcc --version (compiler version)
$ gcc --help (for a list of options)
Test the C++ compiler:
$ g++ --version (compiler version)
$ g++ --help (for a list of options)
Test the Fortran compiler:
$ g77 --version (compiler version)
$ g77 --help (for a list of options)