X
255 Rate this article:
No rating

Why does IDL seem to ignore my environment definition of LM_LICENSE_FILE?

Help Article Update 2

Anonym

Note: File paths are outdated.

After installation of IDL and the successful checkout of a license by IDL, IDL will subsequently always attempt to check out licenses from the same successful license source regardless of how the system environment variable LM_LICENSE_FILE is defined.

Beginning with the IDL 5.6 distribution and the provided version of FlexLM, a behavior has been added that stores the latest successful license information on UNIX, Mac OS X or Linux in a FLEXlm resource file ".flexlmrc" in the user's home directory. For example:

 

    % cat ~/.flexlmrc
    IDL_LMGRD_LICENSE_FILE=/usr/local/rsi/license/license.dat

In this file, a variable named IDL_LMGRD_LICENSE_FILE is defined to indicate the license source. This will cause the Exelis VIS product to continue to use that information until the IDL_LMGRD_LICENSE_FILE value is redefined, the .flexlmrc file is removed, or a system environment variable called IDL_LMGRD_LICENSE_FILE is defined in the shell environment used to start the Exelis VIS product. A license source defined by IDL_LMGRD_LICENSE_FILE in your .flexlmrc file or as a system variable will always hold precedence over any "LM_LICENSE_FILE" enviroment variable definition. Only if a license source defined by IDL_LMGRD_LICENSE_FILE is not successfully accessed will the Exelis VIS product attempt to access a license defined by LM_LICENSE_FILE.

To override the .flexlmrc license source definition, define an IDL_LMGRD_LICENSE_FILE system environment variable that points to the desired license file. For example, from a C-shell:

    setenv IDL_LMGRD_LICENSE_FILE /usr/local/rsi/license/license.dat

From a Korn shell:

    IDL_LMGRD_LICENSE_FILE=/usr/local/rsi/license/license.dat
    export IDL_LMGRD_LICENSE_FILE