Installing matlab

From ImageWiki

Jump to: navigation, search

Download the Installation File

Log into KUNet and go to the software library. Download the latest Matlab version for Linux 64 bit. This should be a zip-file named something like matlab_R2014a_glnx64.zip.

Transfer the file to all the machines where it needs to be installed/updated. It is a good idea to put it somewhere into the /tmp folder and delete it after the installation. Extract the archive into the folder were you moved it. Now you are ready to start with the installation.

Installation

The following needs to be repeated for all machines and you need to have sudo rights.

  1. Use ssh -Y to connect to the bastion and also ssh -Y from there to the actual machines. This is necessary because Matlab needs to be installed via a GUI.
  2. Create the folder /usr/local/Matlab2014a (should vary with the version you install):
    sudo mkdir /usr/local/Matlab2014a
  3. Change the ownership of the folder to your username:
    sudo chown username /usr/local/Matlab2014a
  4. Switch into the directory in which you extracted the installation files.
  5. Start the installation: ./install

During the installation you need to remember the following things:

  • Log in with your Mathworks account when asked
  • Choose the TAH Campus license activation key for installation and activation (can be found in the software library at KUNet)
  • Install Matlab in the created folder (/usr/local/Matlab2014a)

Once you have installed Matlab succesfully, you need to create links to the Matlab directory and binaries.

Create symbolic links

First create a symbolic link for the directory (might be adapted for a different version of Matlab):

sudo ln -s /usr/local/Matlab2014a /usr/local/matlab

Then create links for the binaries in /usr/local/bin:

sudo ln -s /usr/local/matlab/bin/matlab /usr/local/bin/

sudo ln -s /usr/local/matlab/bin/mexext /usr/local/bin/

sudo ln -s /usr/local/matlab/bin/mcc /usr/local/bin/

sudo ln -s /usr/local/matlab/bin/mex /usr/local/bin/

Personal tools