Installing Gempack Release 11 On Windows PCS: (Chapter 2 of Gempack Manual)
Installing Gempack Release 11 On Windows PCS: (Chapter 2 of Gempack Manual)
on Windows PCs
GEMPACK Software
Melbourne, Australia
http://www.gempack.com/
November 2015
Copyright 2014. Impact Project and KPSOFT.
This is part of the documentation of the GEMPACK Software System for solving large
economic models, developed in Melbourne, Australia.
2
GEMPACK user manual
This chapter tells you how to install GEMPACK Release 11 on a PC which is running Windows. To install
GEMPACK Release 10 (or earlier) please refer to the install documents (GPD-6, GPD-7) that accompanied
the earlier Release.
Some parts of the install procedure differ between the Executable-Image and the Source-Code versions of
GEMPACK — the text below will indicate these differences.
All components of GEMPACK are contained in a single install package, which you might download or
receive on a CD or USB drive.
• The install package for Executable-Image GEMPACK might have a name like gpei-11.0-000-install.exe.
• The install package for Source-Code GEMPACK might have a name like gpsc-11.0-000-install.exe.
The package will install
• Windows (GUI) programs such as ViewHAR, ViewSOL, TABmate, AnalyseGE, WinGEM and
RunGEM.
• electronic versions of the GEMPACK user documentation (HTM and PDF files).
• many examples of models built using GEMPACK.
The Executable-Image package will also install a number of vital command-line programs such as
TABLO.EXE and GEMSIM.EXE. The Source-Code package instead installs Fortran source code files for
these programs: during installation these sources are compiled to produce TABLO.EXE and
GEMSIM.EXE.
9
2 Installing GEMPACK on Windows PCs [gpd6.1]
If you cannot find your GEMPACK licence file, you can still install GEMPACK. In this case:
• The Executable-Image installer will create a temporary licence file which last a few months but restricts
model size.
• Source-Code GEMPACK cannot be used without a licence.
Then, after installation, you should manually place a copy of your licence file, renamed if necessary to
LICEN.GEM, into your GEMPACK folder.
10
GEMPACK user manual
The GFortran and Lahey installers should automatically add the right folders to your PATH. For Intel, you
need to edit the PATH variable [the web instructions tell you how].
11
2 Installing GEMPACK on Windows PCs [gpd6.1]
12
GEMPACK user manual
to move to your test folder (assuming that you are testing in C:\TEMP). Then type
dir sj*.*
You should see that the example files listed above are in the test folder.
13
2 Installing GEMPACK on Windows PCs [gpd6.1]
tablo -wfp SJ
You should see messages flash past, ending with
Successful completion of TABLO.
The program is
'sj.for'.
This program
o can create the Equations file
o can carry out multi-step simulations
************************************************
(Information file is 'C:\temp\sj.inf'.)
(The program has completed without error.)
Total elapsed time is: less than one second.
14
GEMPACK user manual
1. Recursive dynamic models solved using RunDynam normally require that the model is solved 1-3 times for each
simulated year.
15
2 Installing GEMPACK on Windows PCs [gpd6.1]
16
GEMPACK user manual
Environment Variables to bring up the Environment Variables dialogue window. Notice that the
top half of the window contains user variables, the bottom contains system variables.
2. Edit the system Path variable and add the GEMPACK directory, noting the following. Entries must
be separated by a semicolon ";". New entries may be added between any existing entries, however
we recommend adding to the beginning of the Path. For example, suppose your GEMPACK
directory is C:\GP, then the system path should look like C:\GP;C:\mingw-w64;%SystemRoot%...
. If you have a previous GEMPACK directory on the Path delete it and add the new GEMPACK
directory to the beginning of the system Path.
3. Add a new (or edit the existing) system environment variable GPDIR to have value set to the
GEMPACK directory. This must be the same directory you added to the beginning of the system
Path in the previous step.
4. Click on the Ok button to accept these changes to the Environment.
These changes will take effect when you next start a program or open a new DOS box. Test these changes
by opening a new DOS box and entering "SET". This should show the altered path and the environment
variable GPDIR. If you don't see the changes you expect got to the environment trouble-shooting section
and work through the points in the next section 2.8.2.
17
2 Installing GEMPACK on Windows PCs [gpd6.1]
Run the program BUILDGP.EXE in the GEMPACK directory from the command prompt or from My
Computer or Windows Explorer.
Check that BuildGP correctly displays your GEMPACK directory and compiler (GFortran or LF95 or
Intel).
Now click on the Start build button.
If you installed GEMPACK successfully with one compiler (say, LF95), and you later wished to use
another compiler (say, Intel), you need to install from the CD again. It is not enough to merely re-run
BuildGP. The installer copies compiler-specific files from the CD. If you want to repeatedly switch
between compilers, see the notes at http://www.copsmodels.com/gpmultifort.htm.
2.9.4 Keep and Temporary directories and GEMPACK Windows programs [gpd6.6.8]
Programs often need to have folders to store user configuration choices, or to write temporary files.
Windows provides default folders for these purposes.
GEMPACK Windows programs store user configuration choices in INI files which are (by default) located
below a folder chosen by Windows. We call that folder the "Keep" folder. For example, for user "John", the
INI file for TABmate might be located at:
C:\Users\John\My Documents\GPKEEP\TABmate\TABmate.ini
Similarly GEMPACK Windows programs by default write temporary files in a subdirectory of the
temporary folder provided by Windows2.
2. Windows stores temporary files in (a) the folder named in environment variable TMP, if that exists, or (b) in the
folder named in environment variable TEMP, if that exists, or (c), the usual default, in a folder under the user folder.
Thus if your Environment variable TMP is set to C:\TEMP, the default temporary directory for WINGEM would be
C:\TEMP\GPTEMP\WINGEM.
18
GEMPACK user manual
For very unusual cases, GEMPACK gives a way to avoid problems with the Keep and the default
Temporary directories by setting environment variables called GPKEEP and GPTEMP. Set a new
environment variable called GPKEEP if you want to change the usual Keep Directory. Set a new
environment variable called GPTEMP if you want to change the default temporary directory without
changing the environment variable TMP.
In RunGEM, WinGEM, AnalyseGE and RunDynam there are Menu Options within the programs which
allow you to set your Temporary directory to a directory of your choosing. The program remembers this
Temporary directory setting. When you start the programs for the first time, the default temporary directory
is set from the value of the TMP or TEMP environment variable.
If you are having problems with these features of one of the GEMPACK Windows programs, consult the
relevant Help file for details and advice.
19
2 Installing GEMPACK on Windows PCs [gpd6.1]
• the GEMPACK release no. of that licence file. Eg, A GEMPACK 10 licence can be used to run programs
from GEMPACK Release 10 or earlier Releases.
• the GEMPACK Version of that licence file — usually Executable-image or Source-code. An Executable-
Image licence will not suffice to use Source-Code GEMPACK.
• whether your licence has expired or is size-limited to smaller models.
• your licence details and no. (eg: GFM-0094). The last four digits of this are your customer no.
• if TABLO.EXE is present in your GEMPACK folder, additional lines at the bottom of the Licence
Information window show the Version and Release information for that copy of TABLO.EXE — which
should match the Version and Release of your licence file.
20
GEMPACK user manual
screen output when you run that program from the command-line. Usually this information has scrolled off
the top of the Command prompt window before you have time to read it. You may need to scroll back to
see it. Or, to capture the output to a file, type:
sltoht <nul: >temp.log
and then examine the top of file temp.log. You might see:
<SLTOHT Version 5.52 January 2011>
This program accesses some of the routines in the GEMPACK software release
<GEMPACK Release 11.1.200 May 2012>
In ViewHAR the History command will show you Program Version and GEMPACK Release Information
about the program that created a HAR file — see section 49.1.2. The same information is echoed to the
log whenever a Command-line GEMPACK program reads a HAR file.
21