r1 - 18 Oct 2005 - 09:55:18 - HarryEdmonYou are here: TWiki >  CompSup Web > ComputerSupportDocuments > SoftwarePackages > MatLab > HostConfig

Setting up MATLAB on an Mac OS/X laptop

By default Mac OS/X changes the hostname based on whether or not the system is connected to a network. In addition the hostname will be different for different network (IP) numbers. Matlab requires that the hostname specified in the license file match the hostname of the system running the system. Therefore, Mac OS/X's changing of the hostname will cause the license file validation to fail when trying to run Matlab.

The solution is to set your laptop to have a static hostname. This can be done by making the following changes on your laptop:

  1. Edit the /etc/hostconfig file. Look for the line starting with HOSTNAME and change it to "HOSTNAME=hname", where hname is the hostname you want to give your laptop. If /etc/hostconfig file does not have a line starting with HOSTNAME, add one to the end of the file.
  2. Edit the /etc/hosts file. Look for the line starthing with 127.0.0.1. Add the same hostname you used above to the end of this line, e.g. "127.0.0.1 localhost hname".
  3. Edit the Matlab license file, which usually is in /Applications/MATLABnnn/etc/license.dat where nnn is a Matlab version number. Note, you cannot edit this file by double clicking on it - you must first start the text editor and then open the file within the editor. Make sure the line starting with SERVER has the same hostname you used above, e.g "SERVER hname ID=164896 27000".

-- HarryEdmon - 18 Oct 2005

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback