Thread Subject: Can I tell MATLAB to use MLM_LICENSE_FILE in preference to LM_LICENSE_FILE?

Subject: Can I tell MATLAB to use MLM_LICENSE_FILE in preference to LM_LICENSE_FILE?

From: Rich N

Date: 17 Mar, 2011 15:28:16

Message: 1 of 3

I've been trying to diagnose a startup problem for someone who has
recently installed MATLAB - we've set up the MLM_LICENSE_FILE
environment variable to point at the correct FLEXlm servers, but he
has installed some other software which also uses FLEXlm and is
pointing at a different server, which is defined in the
LM_LICENSE_FILE variable.

MATLAB currently fails to start as it is using LM_LICENSE_FILE, is
there any way that I can tell it to use MLM_LICENSE_FILE in
preference?

Thanks,

Richard

Subject: Can I tell MATLAB to use MLM_LICENSE_FILE in preference to LM_LICENSE_FILE?

From: tristram.scott@ntlworld.com (Tristram Scott)

Date: 18 Mar, 2011 10:22:23

Message: 2 of 3

Rich N <richnicholson@gmail.com> wrote:
> I've been trying to diagnose a startup problem for someone who has
> recently installed MATLAB - we've set up the MLM_LICENSE_FILE
> environment variable to point at the correct FLEXlm servers, but he
> has installed some other software which also uses FLEXlm and is
> pointing at a different server, which is defined in the
> LM_LICENSE_FILE variable.
>
> MATLAB currently fails to start as it is using LM_LICENSE_FILE, is
> there any way that I can tell it to use MLM_LICENSE_FILE in
> preference?
>

The license adminsitration guide doesn't specify an order of precedence for
LM_LICENSE_FILE and VENDOR_LICENSE_FILE, but I guess you have worked one
out, and it isn't the direction you like.

The best I can think of is to append the contents of MLM_LICENSE_FILE to
the existing LM_LICENSE_FILE. Flexlm has no problem with multiple paths to
license files.

As an alternative, you could perhaps hack the registry entry
HKEY_LOCAL_MACHINE\Software\FLEXlm License Manager> under Windows,
or the $HOME/.flexlmrc file under UNIX.

Or, you could create a license file for MATLAB, and place it in their
$MATLABROOT/etc folder, or whereever the Windows equivalent is.
 
--
Dr Tristram J. Scott
Energy Consultant

Subject: Can I tell MATLAB to use MLM_LICENSE_FILE in preference to LM_LICENSE_FILE?

From: Eric Raffi

Date: 18 Mar, 2011 13:04:04

Message: 3 of 3

Rich N <richnicholson@gmail.com> wrote in message <305ffae3-f4f0-4c5f-99d6-29b2a34e9fb4@s9g2000yqm.googlegroups.com>...
> I've been trying to diagnose a startup problem for someone who has
> recently installed MATLAB - we've set up the MLM_LICENSE_FILE
> environment variable to point at the correct FLEXlm servers, but he
> has installed some other software which also uses FLEXlm and is
> pointing at a different server, which is defined in the
> LM_LICENSE_FILE variable.
>
> MATLAB currently fails to start as it is using LM_LICENSE_FILE, is
> there any way that I can tell it to use MLM_LICENSE_FILE in
> preference?
>
> Thanks,
>
> Richard

Richard,
MLM_LICENSE_FILE should always take precedence over LM_LICENSE_FILE, but both are still searched. The only way to not use LM_LICENSE_FILE is to use the -c option to MATLAB to specify a new search path. When -c is used MATLAB will only search the specified path.

What kind of failure are you seeing? If MATLAB just isn't seeing the server in MLM_LICENSE_FILE then it sounds like the variable might not be set correctly, or the server isn't working properly. If you are seeing problems like hangs because of bad entries in LM_LICENSE_FILE, then using MLM_LICENSE_FILE might not fix that.

-Eric

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com