MATLAB: Do I receive “A SERVER line could not be found in your license file” when performing a silent installation

MATLAB

When I run the silent installer I receive at 99% the following error message:
A SERVER line could not be found in your license file. You will have to manually edit the SERVER line in C:\Program Files\MATLAB\R2018b\licenses\network.lic

Best Answer

This error occurs when the user has chosen the unprocessed license.lic file within the "installer_input.txt":
licensePath=C:\TEMP\license.lic
To resolve the issue, the processed license file with SERVER and DAEMON line needs to be specified for the licensePath.
The processed license file can be retrieved from the $MATLAB/etc folder (license.dat) or the following lines can be added manually to the license.lic:
Linux & Mac OS X
SERVER {hostname} {HostID} 27000
DAEMON MLM {$MATLAB}/etc/MLM
(NOTE: prior to R2011a, the DAEMON line on Linux/Mac was "DAEMON MLM {$MATLAB}/etc/lm_matlab")
Windows:
SERVER $Hostname $HostID 27000
DAEMON MLM "{$MATLAB}\etc\win{32|64}\mlm.exe"
The license file names are all relative. For more information on the differences between license files, see the following article.