Why do I get License Manager Error -3 when I try to use the MATLAB Compiler?

3 views (last 30 days)
ERROR: ??? Error: Could not check out a Compiler license:
No server for this feature (-3,121:2) No such file or directory.
Error in ==> D:\MATLABR11\toolbox\compiler\mcc.dll

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Aug 2022
Edited: MathWorks Support Team on 30 Aug 2022
This error occurs when the LM_LICENSE_FILE variable in Windows is not set properly during installation. To remedy this, set the variable to point to your license file using the following steps under Windows NT/2000 (for Windows 95 or 98, you should edit your autoexec.bat file):
1. right-click on MY Computer
2. choose Properties
3. choose Environment
4. click under User Variables
If you see LM_LICENSE_FILE already defined here, you can append the correct path (with a semi-colon) or remove the current definition (if it is not applicable) and put in the correct path to the license.dat file ($MATLAB\bin\license.dat, where $MATLAB is your root MATLAB directory). Always make sure to add the MATLAB directory at the *beginning* of the variable declaration. If you do not see LM_LICENSE_FILE defined here, you can create it.
For example:
If LM_LICENSE_FILE is listed as a variable and its value is listed as:
c:\temp
then you would edit this value to be
C:\MATLABR12\bin\license.dat;c:\temp
In this example, the root MATLAB directory is C:\MATLABR12. If your root MATLAB directory is different, replace C:\MATLABR12 in the path above with your root MATLAB directory.
If LM_LICENSE_FILE is not defined in this list, create it and give it the correct path value mentioned above.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!