MATLAB: Did I receive the error “Can’t make directory C:\flexlm” in the FLEXlm log file

MATLAB

When I launch MATLAB, I received the following error message:
License Manager Error -97
When I looked in the FLEXlm log file, I noticed the error ERROR: 10:37:18 (lmgrd) Can't make directory C:\flexlm, errno: 2(No such file or directory) 10:37:18 (lmgrd) Can't make directory C:\flexlm, errno: 2(No such file or directory) 10:37:18 (lmgrd) Can't open c:\flexlm\lmgrdl.784, errno: 3
One thing to note is that my server does not have a C:\ drive. My system drive is M:\ and my application drive is N:\.

Best Answer

You must have a C:\ drive to run the license server on Windows, just like you need a /var/tmp and /usr/tmp directory to run the server on UNIX. If you do not have a C:\ drive, please create one on the machine you are using for your server, or switch machines so your server does have a C:\ drive. The need for the C:\ drive is hard coded in FLEXlm application.
A C:\ drive is required, because when the network license manager is launched a C:\flexlm directory is created, which contains a mlm file and a lmgrd.$pid file, such as lmgrd.564. The mlm file is a lock file, which is the file that mlm.exe ($MATLAB\flexlm) looks for to help make sure only one copy of mlm.exe is running on the machine.