|
|||
Department of Engineering | |
University of Cambridge > Engineering Department > Computing Help |
This deals with installing MATLAB and accessing the MATLAB License server from Computers in College rooms and Home Computers (even if not connected to the Cambridge University Network). Requires the use of Broadband Internet connection.
Strictly for Members of the Cambridge University Engineering Department as it requires a valid User-iD and password.
Departmental Networked MATLAB License Information
In order save this give it a session name (for example) remote-matlab
Choose SSH and sub-option X11
Check the box marked Enable X11 forwarding and enter localhost for X-Display location.
Now choose sub-option Tunnels
Check the box marked Local ports accept connections from other hosts.
Next enter Source Port : 1711 and Destination : matlab-lmserv.eng.cam.ac.uk:1711 and click on Add. It would appear as
L1711 matlab-lmserv.eng.cam.ac.uk:1711
Now complete the rest of the input :
So it is displayed as follows :
L1711 matlab-lmserv.eng.cam.ac.uk:1711 L20001 matlab-lmserv.eng.cam.ac.uk:20001If you make any mistakes, select the line and click on Remove, Make the necessary changes and click on Add
Select Session from Category menu on the Left Hand Side (LHS) of the PuTTY configuration window and click on Save to save the session.
Click on Open and this will give you a login window :
In subsequent sessions you need to load the saved session and login to the Teaching System Computers every time you want to use MATLAB.
Once you have established the SSH connection and logged into the gateway to the Teaching System Computers you can minimise the PuTTY window.
It is possible to download the MATLAB software from the Mathworks website.
The next step is to install the downloaded MATLAB,
For later versions of MATLAB or for versions not listed here please contact the Computer Operators (operators@eng).
SERVER localhost 0 1711 USE_SERVERNow it is important to place the license.dat file where MATLAB is expecting it to be. Copy the file to :
C:\Program Files\MATLAB\R2010a\licenses\license.dat
If MATLAB is installed in a different directory or it is a different version make the necessary allowance in interpretting the above line.
If the license.dat file is not in the correct directory it will generate a flexlm error : -49.
MATLAB Installation Keys (along with the MATLAB License codes) requires the Raven password.
Subsequent to the setting up, download and installation steps you need to follows only the steps listed below:
As a workaround, set the environment variable to MATLAB_RESERVE_LO=0 by performing these steps:
127.0.0.1 localhost
Find the first license file and check the contents. If it lists the above 2 lines as suggested, then replace "matlab-lmserv" with "localhost" and save the file and start MATLAB again. If you get the same error then delete that license file (Then it would appear that it is not the license file MATLAB is accessing for validation). Move to the next one on the list and repeat the process until MATLAB works.
Look in the following directory for the MATLAB License File :
C:\Program Files\MATLAB\R200Xx\bin\winNN
where Xx is the MATLAB version (examples : 7a 7b 8a) and
NN is either 32 or 64.
Examples :
C:\Program Files\MATLAB\R2007b\bin\win32
C:\Program Files\MATLAB\R2008a\bin\win64
Other Possibilities :
C:\Program Files\MATLAB\R2008a\licenses\network.lic
If you have more than one version installed and if you cannot find the license.dat in the sub directory for the latest version look in the sub-directory for older versions. Find the oldest version of MATLAB and look in the ..\bin\win32 directory. To find the different versions installed in your computer
START ---> My computer ---> C: drive --> Program Files ---> MATLAB
and look at the folders listed. Alternatively on a command window type :
dir C:\"Program Files"\MATLAB
This will list all the versions that had been installed on the C drive. Last resort : Use the "search" command and search for the file "license.dat" Failing that search for "network.lic".
Start up MATLAB and if you get a flexlm error -96 then it is a matter of copying the license file to one of the directories (create it if it does not exist) MATLAB is looking to find the license file and trying one of the alternatives for the SERVER (matlab-lmserv, matlab-lmserv.eng.cam.ac.uk, localhost) in license.dat and network.lic files.
This is only applicable if the installation is being done from CDs or directly from the Mathworks site. Only relevant for users who have a Mathworks account.
If you run into any problems email a description of it to : pc-support@eng.cam.ac.uk.
Include screen dumps (use the ALT/ Print Screen buttons) of any error messages. On a DOS Window type the command "netstat -a" and send the entries for the following ports : 1711 and 20001.
If the above port entries are missing from the list then review the SSH tunneling steps.
Last updated: 1 July 2010
©
2008 Cambridge University Department of Engineering Information provided by Peter Benie, Peter Clarkson, Paul Long, Patrick Gosling, John Norcott and Paul Whitehouse |