Skip to Main Content Skip to Search
Accelerating the pace of engineering and science

How do I perform a Stand Alone Named User Installation on Linux or Unix for R2007b or earlier?


Date Last Modified: Friday, April 22, 2011
Solution ID:   1-8LME7A
Product:   MATLAB
Reported in Release:   R14SP1
Platform:   Linux
Operating System:   Linux Any
 

Subject:

How do I perform a Stand Alone Named User Installation on Linux or Unix for R2007b or earlier?

Problem Description:

I am trying to install on Linux R2007b with my individual license, but the process seems different from the installation instructions on the website. I would like to know how this is different from performing a standard standalone named user installation.

Solution:

To perform a Stand Alone Named User (SNU) Installation of MATLAB on Linux/Unix for R2007b or below, follow these steps:

1. Make sure you have your License File for installing R2007b and earlier versions. This file will contain a line at the top that says:

INCREMENT TMW_ARCHIVE

which will not be included in newer license files.

2. Make sure the drive is mounted properly if installing from a disc. If you do not know how to do this or suspect it is not, see the following solution:

http://www.mathworks.com/support/solutions/en/data/1-184PH/index.html

3. Create an installation directory (referred to as MATLABROOT), and place your license.dat file there. The installer looks for the License File here and, after processing it, moves the License File to MATLABROOT/etc during installation.

4. Start the installer.

If you are installing from a DVD:

/dvd/install &

If you are installing from downloads:

tar -xf boot.ftp

Then run the installer with the following command:

./install

5. Accept license agreement, verify installation directory, and verify license file.

6. Select what products to install. Make sure you are installing the License Manager as it is required for stand alone installs for version R2007b and earlier on Linux/Unix systems.

7. Specify location of symbolic links. This is where you want to put symbolic links to the matlab and mex scripts.

8. Specify login name of MATLAB user. This is the operating system username that you will run MATLAB under. This will automatically configure your MLM.opt file found in MATLABROOT/etc. If at some point this username needs to be changed or if this isn't configured automatically, you can alter this file with a text editor.

This file contains an INCLUDE line for each product and the username of the named user. For example:
INCLUDE MATLAB USER bestuser
INCLUDE SIMULINK USER bestuser

NOTE: The username will be the UNIX short name, found by typing "whoami" in a terminal.

If you need to make changes to the options file or license file, you must stop and restart the license manager for the changes to take effect.

9. Begin the installation and exit the installer after installation is completed.

10. Ensure the license manager has been started: The license manager must be running in order to use the license. To start the license manager, you can use the lmstart script which is located in MATLABROOT/etc. For more information about starting the license manager, including starting the license manager at boot, see the installation guide here:

http://www.mathworks.com/help/base/install/pc/f1-78860.html

Make sure that the license file's SERVER and DAEMON lines were properly added to the license file. If this is not done automatically during installation, you will need to add these lines manually. This license file (license.dat) will be located in MATLABROOT/etc. The SERVER line contains the host name the computer can resolve itself to, the license number, and the port number the lmgrd service runs on. The DAEMON line specifies the path to the license manager daemon, MLM, and the path to the options file MLM.opt. The port that this service uses is assigned dynamically, but if needed can be set to a static port number by modifying this file. If you change this file, you will need to stop and restart the license manager for those changes to take effect. For example:

The structure of the license file should be the following:
SERVER hostname ID=license# port#
DAEMON MLM path-to-vendor-daemon options=path-to-options-file port=port#
For example:
SERVER ANTUNESM ID=55555 27000
DAEMON MLM usr/local/MATLAB/etc/MLM options=/usr/local/matlab/etc/mlm.opt port=1700

(NOTE: prior to R2011a, the DAEMON line on Linux/Mac was "DAEMON MLM usr/local/MATLAB/etc/lm_matlab")

11. MATLAB can be run from MATLABROOT/bin by typing:

./matlab

Please provide feedback to help us improve this Solution
Contact support