NAG Library for Python on Mac


The use of this product is controlled by the Kusari license management system, version 2.2-88.

In order to enable the software, NAG will issue you with a license key. The license key is contained in a text file consisting of details of the software that will be enabled.

For evaluation purposes a trial license may be used.

Before obtaining a full license you need to know the Kusari hostid of the system on which you intend to use this product. How to do this is described below.

To request a license key, run the program khostid located in the license/bin/macx64/ subdirectory of the software distribution.

This utility must be run from a command prompt.

Return the information that it displays, together with the product code (in this case CLMI626DDL), by email to NAG.

Alternatively, direct the output from this utility to a file and send both the file and the product code to NAG.

A short term (demonstration or trial) license key contains one or more lines like the following:

CLMI626DD TRIAL 2017/12/12 "EMnxidA3oeoj0F1Yvi5ibxPjB7"

Specifically, it has a line containing the word TRIAL.

Longer term license keys must be locked to a specific computer, i.e. they will enable the software on one computer only.

These license keys typically include the word NODE or FULL instead of the word TRIAL above and may contain extra fields.

Once you have obtained one of the above license keys, the easiest way to install it is to store the text in a file,






The license software in this product automatically looks for these particular files and reads the first one found, so no other action is necessary.

Alternatively, store the license in a file with a name and location of your choice, say,


The location of the license file, if it is not one of the default places listed above, must be made known to the NAG application by setting the environment variable NAG_KUSARI_FILE to the full pathname of the file before the application is invoked.

For example, in the C shell, type:

setenv NAG_KUSARI_FILE [INSTALL_DIR]/license.lic

or in the Bourne shell, type:


Further details about Kusari and how it may be configured to suit your local circumstances (e.g. how to install the license key on a server) are included in the Kusari License Management documentation in the license/doc/ subdirectory of the software distribution.

In particular, the bin directory contains the Kusari Version 2.2 daemons and utilities. The binaries are in the following platform-specific sub-directories.

  • linux_x64
    • Intel64 and AMD64 Linux
  • linux_x86
    • x86 Linux
  • macx64
    • Apple Mac OS X (64-bit Intel)
  • w32
    • Microsoft Windows (32-bit x86)
  • w64
    • Microsoft Windows (64-bit x64)

If you need the Kusari binaries for other platforms (e.g. to run a license server on a different system) please contact NAG.

See also the Kusari FAQ:

and the licensing section of the Installer's Note for the NAG C Library