[Previous] [Up] [Next]

A Tour of NTL: Obtaining and Installing NTL for UNIX


The following procedures for building, installing, and using NTL work on most Unix or Unix-like platforms (including Linux, Mac OS, and Windows with MinGW or Cygwin tools) .

To obtain the source code and documentation for NTL, download ntl-xxx.tar.gz, placing it a directory, and then, working in this directory, do the following.

   % tar -xf ntl-xxx.tar.gz
   % cd ntl-xxx/src
   % ./configure [ variable=value ]... 
   % make
   % make install

Here, "xxx" denotes the current version number.

Note that NTL's configure script does not follow the normal autotools syntax for passing options to the script. Rather, each option is of the form variable=value. The most common and important options:

For example, if you are installing GMP and NTL in $HOME/.local, invoke configure as

   % ./configure DEF_PREFIX=$HOME/.local

If you also want a shared library, invoke it as

   % ./configure DEF_PREFIX=$HOME/.local SHARED=on

Note that the order of options does not matter.

Other configuration options

Before installing NTL

After installing NTL

Using the GF2X library

Multi-threading

Exceptions

More on static and shared libraries

[Previous] [Up] [Next]