a) Create the directory where Matlab will be installed ("/usr/local/matlab7").
Copy the "license.dat" file to the directory. Let us call this dir $MATLAB
from now on.
b) Run the installer and proceed with the installation.
cd /usr/local/matlab7
sudo /cdrom/install* &
%% display "Insert CD 2"
sudo umount /media/cdrom0
eject
c) Open the "license.lic" file and replace the string "your_host_name" with
the hostname of the computer where Matlab is being installed.
d) Copy the edited "license.lic" file to "$MATLAB/etc".
e) Now you are all set to run Matlab. Enjoy!
-------------------------------------------------------------------------------------If your Linux is Debian, then you will meet some problems,
such as
Problem 1:xxxxx:/usr/local/matlab7# /media/cdrom/install* &
bash: /media/cdrom/install: /bin/sh: bad interpreter: Permission denied
Solution:Become root
Unmount CD-ROM
Make dirctory /cdrom
Give command: mount -t iso9660 -o exec /dev/cdrom /cdrom
After this go to the directory where you want to install the matlab. Put licence
file in that directory and from being in that directory give command:
/cdrom/install
Installation will start
Ref:
http://www.linuxquestions.org/questions/linux-software-2/matlab-on-debian-232213/Problem 2:An error status was returned by the program 'xsetup',
the X Window System version of 'install'. The following
messages were written to standard error:
/tmp/5447tmwinstall/update/bin/glnx86/xsetup: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
Attempt to fix the problem and try again. If X is not available
or 'xsetup' cannot be made to work then try the terminal
version of 'install' using the command:
install* -t or INSTALL* -t
Solution:According to some forums do:
# apt-get install libxp-dev
and then,
insert the MATLAB CD-ROM
XXXX:/usr/local/matlab7# sh /media/cdrom/install
However, I did follow the instructions of:
http://www.debianhelp.org/node/74321. Let run the install script so that it creates some environmental variables correctly.
2. Then
# cp /media/cdrom/update/bin/glnx86/libmwins.so /usr/lib
Check if you want to install the one of glnx86, glnxa64 and sol64 instead
3. Copy xsetup from the same directory to the install directory.
# cp /media/cdrom/update/bin/glnx86/xsetup /usr/local/matlab
4. From the install directory:
# ./setup
LATER when you run matlab you will see some errors associated to java
install java (http://www.java.com/en/download/index.jsp)
and then edit the file in bin/matlab
at the begining of the script (around line 180) write down:
# There is an error with the java that comes with MATLAB. Use the other java
export AWT_TOOLKIT=MToolkit
#export MATLAB_JAVA=/usr/lib/jvm/java-1.6.0-sun-1.6.0.10/jre
#export MATLAB_JAVA=/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre
export MATLAB_JAVA=/opt/jre1.6.0_12/
Finally activate the multithreading part in Preferences
ENJOY!
Ref: http://diegotorquemada-linux.blogspot.com/2009/02/installing-matlab.html