Why do I receive multiple license manager error -5's for products not on my licenses when starting MATLAB?

8 views (last 30 days)
When starting MATLAB, I receive several license manager error -5's. After clicking "OK" to each, MATLAB starts. 
When starting MATLAB, I receive several license manager errors stating:
FlexNet Licensing checkout error: No such feature exists.
Feature: Simulink
License path C:\Program Files\MATLAB\R2014b\licenses\license.dat
FlexNet Licensing error:-5,357
I do not own the products I receive the license manager errors for. After clicking "OK" to each, MATLAB starts.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Jul 2016
This error can occur if you have the FLEXLM_DIAGNOSTICS environment variable set. FLEXLM_DIAGNOSTICS is a diagnostic tool that will provide verbose outputs on license checkouts requests. When starting MATLAB from an Individual or Designated Computer license, it will attempt to checkout all MathWorks products. Normally these checks are not shown. With FLEXLM_DIAGNOSTICS you will get an error -5 for each MathWorks product not on your license.
This can be resolved by deleting the FLEXLM_DIAGNOSTICS environment variable. 
Windows
1. Right-click the My Computer (or Computer) icon and select Properties.
2. In the System Properties window, go to the Advanced tab and click the Environment Variables button near the bottom.
3. Under the user variables and System variables select FLEXLM_DIAGNOSTICS and click delete.
Linux
You can remove the environment variable for a single session by running the below in terminal:
unset FLEXLM_DIAGNOSTICS
 

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!