HAP - content download

### Download Instructions

On a Linux machine with GAP installed, the HAP library can be loaded as follows:

- First download the file hap1.47.tar.gz which contains the most recent development version of HAP to the subdirectory "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 you'd prefer to download the most recent development version of HAP then download the file hap1.47-dev.tar.gz instead.)

- Change to directory "pkg/" and type "gunzip hap1.47.tar.gz" followed by "tar -xvf hap1.47.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.47/www" of the distribution).

- A few of HAP's (optional) functions rely on Polymake software (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 https://www.graphviz.org/).

- Performance can be improved by using a compiled version of the HAP library. The following steps will produce a compiled version.
  (1) Change to the directory "pkg/Hap1.47/" .
  (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.47/" and type "./uncompile".