GAP (NormalizInterface) - Chapter 4: Installing NormalizInterface

Goto Chapter: Top 1 2 3 4 Bib Ind
[Top of Book] [Contents] [Previous Chapter] [Next Chapter]

[MathJax on]

4 Installing NormalizInterface
4.1 Compiling

### 4 Installing NormalizInterface

#### 4.1 Compiling

NormalizInterface supports GAP 4.9 or later, and Normaliz 3.5.4 or later.

For technical reasons, installing and using NormalizInterface requires that your version of GAP is compiled in a special way. Specifically, GAP must be compiled against the exact same version of the GMP library as Normaliz. By default, GAP compiles its own version of GMP; however, we cannot use that, as it lacks C++ support, which is required by Normaliz.

Thus as the very first step, please install a version of GMP in your system. On most Linux and BSD distributions, there should be a GMP package available with your system's package manager. On Mac OS X, you can install GMP via Fink, MacPorts or Homebrew.

Next, make sure your GAP installation is compiled against the system wide GMP installation. To do so, switch to the GAP root directory, and enter the following commands:

    make clean
    ./configure --with-gmp=PATH/TO/YOUR/GMP
    make

Next you need to compile a recent version of Normaliz. This requires the presence of several further system software packages, which you install via your system's package manager. At least the following are required:

- curl OR wget for downloading the source code

Once you have installed these, you can build Normaliz by using the `prerequisites.sh` script we provide. It takes a single, optional parameter: the location of the GAP root directory.

    ./prerequisites.sh GAPDIR

Once it completed successfully, you can then build NormalizInterface like this:

    ./configure --with-gaproot=GAPDIR
    make

[Top of Book] [Contents] [Previous Chapter] [Next Chapter]
Goto Chapter: Top 1 2 3 4 Bib Ind

generated by GAPDoc2HTML