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, see Creating a License File.)

The following is an example of a user-created license.dat file:

Each INCREMENT line can include any of these elements:

The options may vary, depending on license type. For example, INCREMENT lines for user-based licenses include the keyword USER_BASED.

The INCREMENT line containing the TMW_Archive identifies the products you are licensed to install.

License File Processing

During installation, the installer processes the License File, adding two lines to the file: the SERVER line and the DAEMON line. These lines add information about the name, location, and port number of the license manager daemon. The installer moves the processed License File into the $MATLAB/etc directory. The following is a sample of a processed License File. Note the addition of the SERVER and DAEMON lines:

SERVER Line.   The SERVER line has the form

where hostname identifies the system on which the license manager is running and hostid can either be the HostID of the server or the string ID=xxxx, where xxxx identifies the user. TCP_PortNumber specifies the TCP/IP port number used to connect to license manager daemon.

If the port number assigned to the server conflicts with a port number used by other software, you can edit the SERVER line to change the number. You can use any port number; however, to run the daemons from a nonroot account, the port number must be greater than 1024. FLEXlm recommends using a port number in the range 27000 to 27009.

DAEMON Line.   The DAEMON line identifies the name and location of the vendor daemon (MLM):

In user-based licenses, the DAEMON line also contains the path of the license options file, as the fourth parameter. See Creating a License Options File for more information.

For example, if your server is named thunderball and its hostid is 170a3472, the SERVER and DAEMON lines in your License File would look like this:


  Applications Specifying the Location of the License File