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 Named User 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 host ID of the server or the string ID=xxxx, where xxxx identifies the license number. The host ID in the comment portion of the License File must match the host ID in the SERVER line.

TCP_PortNumber specifies the TCP/IP port number used to connect to the 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. Globetrotter Software, Inc., the maker of 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 Named User licenses, the DAEMON line also contains the path of the license options file, as the fourth parameter. For example, if your server is named thunderball and its host ID is 170a3472, the SERVER and DAEMON lines in your License File would look like this:

Specifying the Location of the License File

The environment variable LM_LICENSE_FILE defines where the license manager looks for the License File. By default, The MathWorks appends the value $MATLAB/etc/license.dat to this variable. If you want this environment variable to point to some other location, you must edit the.matlab6rc.sh script, which resides in $MATLAB/bin.

If you change the definition of LM_LICENSE_FILE in .matlab6rc.sh, you need to edit the license manager options file $MATLAB/etc/lmopts.sh to change the LM_FILE variable assignment. For example, if you change the location of the License File to /usr/licenses/license.dat, use the assignment

in the license manager options file.


  License Manager Daemon License Manager Tools