On a Linux machine with GAP installed, the HAP library can be loaded as
- First download the file hap1.12.tar.gz
which contains the most recent development version of HAP to the
"pkg/" of GAP. If you don't have access to this subdirectory,
then create a directory "pkg" in your home directory and download the
file there. (if for some reason you'd prefer to download the most
recent non-development version of HAP then download the file hap1.12.tar.gz
- Change to directory "pkg/" and type "gunzip hap1.12.tar.gz" followed by "tar -xvf hap1.12.tar" .
- Start GAP. (If you have created "pkg" in your home directory then start GAP with the command "gap -l 'path/homedir;' " where path/homedir is the path to your home directory.)
- In GAP type " LoadPackage("HAP"); "
- Help on HAP can be found on the HAP home page (a version of which is included in directory "pkg/Hap1.12/www" of the distribution).
- A few of HAP's (optional) functions rely on Polymake
(available from www.math.tu-berlin.de/polymake/) which should be
installed so that it
starts using the command "polymake" at the Linux prompt. A few
(optional) functions rely on Graphviz software (available from
- Performance can be improved by using a compiled
version of the HAP library. The following steps will produce a compiled
(1) Change to the directory "pkg/Hap1.12/" .
(2) Edit the file "compile" so that: PKGDIR is equal to the path to the
directory "pkg" where your GAP packages are stored; GACDIR is equal to the
path to the directory where the GAP compiler "gac" is stored.
(3) Type "./compile" .
The next time HAP is loaded a compiled version will be loaded.
- Should you want to return to an uncompiled version, change
to the directory
"pkg/Hap1.12/" and type "./uncompile".