How do I force MATLAB to ignore the LM_LICENSE_FILE environment variable?

20 Ansichten (letzte 30 Tage)
Other vendors also use the LM_LICENSE_FILE environment variables. This causes issues with my MATLAB installation. How do I force MATLAB to ignore the LM_LICENSE_FILE environment variable at startup?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 16 Mai 2019
Bearbeitet: MathWorks Support Team am 16 Mai 2019
MATLAB license information can be put into the MLM_LICENSE_FILE environment variable. Check to see if your other software vendors use similar environment variables specific to their software. If possible, the best solution is to use a vendor specific environment variable for each program that would normally make use of LM_LICENSE_FILE.
If this is not possible, the only way to ensure that MATLAB does not read the LM_LICENSE_FILE environment variable is to invoke MATLAB with a -c flag. This lets you specify exactly which license file MATLAB will read at startup. You can either call MATLAB directly from a command prompt or terminal window with this flag, or you can modify the target field of your shortcut to call MATLAB with this flag every time you launch it.
The syntax for running MATLAB from the command prompt or terminal will look like this:
"PATH_TO_MATLAB" -c "PATH_TO_LICENSE_FILE"
On Windows this might looks like:
"C:\Program Files\MATLAB\R2014a\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2014a\licenses\license.lic"
On Mac OS X:
/Applications/MATLAB_R2014a.app/bin/matlab -c /Applications/MATLAB_R2014a.app/licenses/license.lic
And on Linux:
/usr/local/MATLAB/R2014a/bin/matlab -c /usr/local/MATLAB/R2014a/licenses/license.lic

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by