Search This Blog

Saturday, August 25, 2012

Install matlab in Ubuntu from an ISO image file

Do the following as root

1) Mount the ISO
  mount -o loop Mathworks.Matlab.R2007a.UNIX.DVD.ISO /mnt/temp 


2) Create the directory you want to install MATLAB into
  mkdir /opt/matlab 


3) Copy the license file into it from directory. I used the node-locked
version

  cp /mnt/temp/license_locked.dat /opt/matlab/license.dat

4) Install the program
  cd /opt/matlab; /mnt/temp/install


5) Read inst_doc.pdf on DVD (/mnt/temp/inst_doc.pdf) and setup startup scripts
to automatically start the license manager.




Optional:::::::::

6) I was having some crashes when running commands like "help" or changing
fonts. 
The crash was in libfontmanager.so which is part of JAVA. 
So I
installed latest version of JAVA (sun-jre-bin-1.6.0) and 
set environment
variable MATLAB_JAVA=/opt/sun-jre-bin-1.6.0/ [ Change this location 
to
wherever you have installed your JRE ]. 
To make this permanent, add this line
to your ~/.bashrc or /etc/profile
export MATLAB_JAVA=/opt/sun-jre-bin-1.6.0


7) Setup web-browser for MATLAB. 
Edit /opt/matlab/toolbox/local/docopt.m
   Change line 52 from
   %   doccmd = '';
   to
   doccmd = 'firefox';

No comments:

Post a Comment

Thank you