

G77 driver.f /usr/local/NAG/fllux21dgl/lib/libnag_nag.a -lpthread If you prefer to link to a version of the NAG library which does not require the use of the MKL libraries, you may wish to use the self-contained libraries as follows: Where driver.fis your application program. L/usr/local/NAG/fllux21dgl/mkl_32 -lmkl_lapack32 -lmkl_p4 -lvml -lmkl_vml_p4 \ G77 driver.f /usr/local/NAG/fllux21dgl/lib/libnag_mkl.a \ To use the NAG Fortran Library and the supplied MKL libraries (MKL = Intel Math Kernel Libraries), you may link in the following manner: Libnag_nag.so - Dynamic, self-contained libraries Libnag_nag.a - Static, self-contained libraries NAG Fortran Library, Mark 21, x86-32 Linux, GNU g77, Double Precisionīoth shared and dynamic libraries are available in /usr/local/NAG/fllux21dgl/lib: If you are still have problems running your program, contact SNS Computing. Setenv NAG_KUSARI_LICENSE /usr/local/nag/ If you use the tcsh shell, you can set it to teh correct value using the setenvcommand: If it is set incorrectly and you use the bash shell, you can set it to the correct value like this:Įxport NAG_KUSARI_FILE=/usr/local/nag/. If you get an error like this, please check to make sure that the value of the NAG_KUSARI_FILE environment variable is set correctly as shown above. Sorry invalid usage - Have you got a valid licence? If not please contact NAG. If it's not set to the correct value, you'll get an error like this when trying to run a program that uses the NAG libraries: You can check that it is set to the correct value using the command echo $NAG_KUSARI_FILE:

This variable should be set for you automatically at log in time. This is controlled by the environment variable NAG_KUSARI_FILE.

In order run programs linked against the NAG libraries, the programs must be able to contact the SNS license server. The NAG libraries are licensed softwarre. NAG C Library, Mark 8, Linux (x86-64), GNU gcc.NAG Fortran Library, Mark 21, Linux (AMD64), GNU g77, Double Precision.NAG C LIbrary, Mark 8, x86-32 Linux, GNU gcc.NAG Fortran Library, Mark 21, x86-32 Linux, GNU g77, Double Precision.We have 6 versions of the NAG libraries available, 3 32-bit libraries, and 3 64-bit libraries:
