MATLAB Installation Guide for Unix | ![]() ![]() |
License File
A License File is an ASCII text file, named license.dat
, that contains a set of valid license passcodes. When you purchase MATLAB or other products, The MathWorks sends you license information in an e-mail or fax. You must create a License File containing this license information. (For more information about creating a License File from this message, see Before You Install.)
The following is an example of a user-created license.dat
file.
# MATLAB license passcode file for use with FLEXlm 6.1g # LicenseNo: 123 HostID:170a3472
INCREMENT TMW_Archive MLM 12 01-jun-2001 0 EC2889409F00E6230A02 \ VENDOR_STRING="3" HOSTID=DEMO
SN=123 INCREMENT MATLAB MLM 12 01-jun-2001 1 CC98B9F0B9B5A75B38BC \ DUP_GROUP=UH SN=123 INCREMENT SIMULINK MLM 12 01-jun-2001 1 BCE8A9C0759F3C0FB744 \ DUP_GROUP=UH SN=123 # END---------cut here-------CUT HERE-------END
Each INCREMENT
line has the form
INCREMENTproduct
MLM 12
expir-date users passcode license_num
The INCREMENT
line containing the TMW_Archive
identifies the products you are licensed to install.
Note
In previous releases, The MathWorks used FEATURE lines to encode license passcode information in License Files. INCREMENT lines perform the same function as FEATURE lines.
|
License File Processing
During the installation process, the installer processes the License File, adding information about the name, location, and port number of the license manager daemon. After processing the License File, the installer moves it into the $MATLAB/etc/
directory.
The following is a sample of a processed License File.
# MATLAB license passcode file for use with FLEXlm 6.1g # LicenseNo: 123 HostID:170a3472
SERVER myserver170a3472
27000 DAEMON MLM /usr/local/matlabr12/etc/lm_matlab INCREMENT TMW_Archive MLM 12 01-jun-2001 0 EC2889409F00E6230A02 \ VENDOR_STRING="3" HOSTID=DEMO
SN=123 INCREMENT MATLAB MLM 12 01-jun-2001 1 CC98B9F0B9B5A75B38BC \ DUP_GROUP=UH SN=123 INCREMENT SIMULINK MLM 12 01-jun-2001 1 BCE8A9C0759F3C0FB744 \ DUP_GROUP=UH SN=123 # END---------cut here-------CUT HERE-------END
Note the addition of two lines to the License File:
The SERVER
line identifies the system on which the license manager daemon runs, by hostname
and hostid
, and specifies the TCP/IP port number used to connect to it. The SERVER
line has this general format.
SERVER hostname hostid TCP_PortNumber
You typically do not need to edit this line except if you know the port number conflicts with other software. You can use any port number; however, to run the daemons from a nonroot account, the port number must be greater than 1024.
The DAEMON
line identifies the name and location of the vendor daemon. In user-based licenses, the DAEMON
line also contains the path of the license options file.
![]() | Applications | Specifying the Location of the License File | ![]() |