How to run CHILD in Windows 7

From UMaine SECS Numerical Modeling Laboratory
Revision as of 16:18, 21 April 2015 by Sam (talk | contribs)
Jump to: navigation, search

To compile CHILD on a PC, you require Linux functionality. I use Cygwin for this purpose: https://www.cygwin.com/

-Download cygwin setup for the 32-bit version (CHILD doesn't seem to work under the 64 bit version of cygwin).

-Run the setup program. You will need the default installation packages but there are two additional packages that need to be installed:

-In the cygwin installation search bar, type 'make'. Make sure to install the options under 'devel' by clicking the circular arrow pattern next to it.

-Following the same procedure, type 'gcc' and install the 'devel' components.

-Hit the next button, accept any additional dependencies that need to be installed.

-Cygwin installation could take up to an hour.

-You need to make sure that windows command prompt recognizes cygwin commands. To do so, you will need to add cygwin's bin file to the system path. Here is a useful website explaining the procedure: http://lifehacker.com/362316/use-unix-commands-in-windows-built-in-command-prompt You can add the cygwin path by typing 'environment variables' in the start menu, and hit the environment variables button. Under the system variables, scroll down to Path, and click edit. At teh end of the variable value line, type: ;C:\Cygwin\bin with no spaces between paths (assuming you chose the default cygwin path on installation).

-Restart your computer.

-Open command prompt and navigate to the CHILD code folder. type: make -f childi.mk