NAG Toolbox for MATLAB


x86-64 Linux, MATLAB R2015aSP1 - R2016b

Installer's Note


1. Introduction

This Installer's Note is essential reading for whoever is responsible for the installation of this implementation of the NAG Toolbox for MATLAB.

Your attention is drawn to the terms and conditions of the Software License Agreement regarding the use of NAG software.

2. Implementation Provided

2.1. Applicability

This implementation is a compiled, tested, ready-to-use version of the NAG Toolbox for MATLAB that is considered suitable for use on the computer systems detailed below:

hardware:             x86-64 systems and compatible
operating system:     Linux 2.6 and compatible
MATLAB Version:       8.5.1 (R2015aSP1), 8.6 (R2015b), 9.0 (R2016a), 9.1 (R2016b)

The user needs to have MATLAB installed. This implementation will not work with versions of MATLAB earlier than 8.5.1 (R2015aSP1), but may work with versions later than 9.1 (R2016b).

2.2. Supplementary Information

Please check the following URL:

for details of any new information related to the applicability or usage of this implementation.

3. Distribution Medium

The software is available to download from any of the NAG websites (see Section 7 for contact details).

4. Installation

If you downloaded this product from NAG as a compressed tar file then you should unpack it as follows. Create a temporary directory and unpack the file mbl6i25dnl.tgz into it, for example using the commands:
mkdir nagtmp
cd nagtmp
tar -xzf ../mbl6i25dnl.tgz

If you are upgrading an existing installation of the toolbox you are strongly advised to uninstall it using the UNINSTALL.a64 script created on installation, using the command

If you are unsure where the existing installation is installed, then type which a00aa at the MATLAB prompt. This should return a string like:
which indicates that the UNINSTALL.a64 script can be found in
Note that older versions of the toolbox used a different file structure and on these installations the UNINSTALL.a64 script will be under the

Run the INSTALL script by typing "sh INSTALL". This will prompt you for the location in which you wish to install the product. Note that, unlike with some previous toolbox releases, this is not under your existing MATLAB installation, since the MATLAB help system will no longer display third-party help files located below the MATLAB root directory.

Note that NAG recommends that you install a separate version of the toolbox for each version of MATLAB that you wish to use it with, since the installation includes an uninstall script specific to that version. However, if you install a new release of MATLAB and wish to use an existing installation of the toolbox with it, then this is possible by following the instructions in Section 4.1.

After installation, you should ensure that the software described in Section 4.1 is present and accessible.

You should access the toolbox documentation as follows. On starting the MATLAB documentation browser you should see a link labelled Supplemental Software. Clicking on that should open a browser with the entry NAG Toolbox in the Contents list.

A quick test that the software has been correctly installed is to type a00aa at the MATLAB prompt, which should print some implementation details.

4.1. Installation Options

If you choose to have your MATLAB path updated during installation, the file toolbox/local/pathdef.m in your MATLAB installation will be modified. If you install the toolbox under /opt/NAG/MBL6I25DNL_R2015aSP1 then this file will have the lines:

     '/opt/NAG/MBL6I25DNL_R2015aSP1/mex.a64:', ...
     '/opt/NAG/MBL6I25DNL_R2015aSP1/help/NAG:', ...
inserted. If you choose not to have your path modified, or you wish to use an existing toolbox installation with a new installation of MATLAB, then there are a number of ways by which this may be done by hand. The easiest is to use the Set Path button on the MATLAB GUI, but if you search for "matlab path" in the MATLAB online help system you will find pointers to several others. If updating by hand then it is essential to ensure that the directory containing the help files appears after that containing the executable files. For example, if you installed the toolbox under /opt/NAG/MBL6I25DNL_R2015aSP1 then your MATLAB path should contain the directories: in that order.

If you choose to modify your MATLAB script during installation then the file bin/matlab in the MATLAB distribution will have the lines:

  # Inserted during installation of NAG Toolbox for 64 bit Linux
added to it. If you decide to modify your LD_LIBRARY_PATH by hand then a good approach is to edit the definition of LDPATH_PREFIX in the file. The main reason that this is not the approach taken by the installation script is that MATLAB allows a user to over-ride the system-wide version with their own version(s) and so it is not possible reliably to install the toolbox for all users this way. The MATLAB documentation contains more information about the use of the file.

4.2. Uninstalling the Software

To uninstall the software run the script UNINSTALL.a64 which is created during installation, using the command

4.3. License Management

The use of the NAG Toolbox is controlled by the Kusari network license management system. This release of the NAG Toolbox uses version 2.2-72 of Kusari.

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

To request a license key, run the program khostid located in /MyMatlab/license/bin/linux_x64/. This utility must be run from a command prompt. Return the information that it displays by e-mail (or FAX) to NAG.

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

MBL6I25DNL TRIAL 2016/11/12 "EMnxidA3oeoj0F1Yvi5ibxPjB7"
Specifically, it has a line containing the word TRIAL and is referred to here as an uncounted license key. Longer term uncounted license keys must be locked to a specific computer, i.e. they will enable the software on one computer only. These license keys include the word NODE instead of the word TRIAL above. Other types of keys may also be issued.

Once you have obtained the license key, store the text of it in a file, say /MyMatlab/license.lic.

For an uncounted license, the location of the license file must be made known to the NAG Toolbox by setting the environment variable NAG_KUSARI_FILE to the full pathname of the file before MATLAB is started.

For example, in the C-shell, type:

   setenv NAG_KUSARI_FILE /MyMatlab/license.lic
or in the Bourne shell, type:
No other actions are required to install an uncounted license.

To check that the license has been correctly installed, start MATLAB and type a00ac. If this returns 1 then the license has been installed successfully and a license is available.

Further details about Kusari and how it may be configured to suit your local circumstances can be found in /MyMatlab/license/doc.

5. Documentation

On-line documentation, accessible via the standard MATLAB help facilities, is bundled with this implementation. Please see Section 4.

6. Support from NAG

NAG will provide free support for this product for a period of 90 days from the date of purchase. Beyond that period, support will continue to be provided for users who have an appropriate support agreement. Please see

for information about the NAG Technical Support Service, including details of the NAG Technical Support Service contact points. We would also be delighted to receive your feedback on NAG's products and services.

7. Contact Addresses

Please see

for worldwide contact details for the Numerical Algorithms Group.