FlyZhy.Org logo Projects - Installing Matlab

Before
HowTo
Download
Installing
Configuring
After

How to install Matlab-7.0-R14-Linux-Unix-MAC-3ISOz in my Slackware Linux on my computer.

Before

HowTo

Download

The version of Matlab I used is Matlab-7.0-R14-Linux-Unix-MAC-3ISOz, which is downloaded from ftp://eelinux.3322.org/pub/software/Science/MATH/matlab/Matlab-7.0-R14-Linux-Unix-MAC-3ISOz/ including three ISOs as follows:

Matlab_R14_Mac.Linux.Unix_CD1.iso
Matlab_R14_Mac.Linux.Unix_CD2.iso
Matlab_R14_Mac.Linux.Unix_CD3.iso
license.dat & license.lic is in CD1.iso/

Notice that if the internet you have is not the Chinese Educational Net, I am sorry to say that you can not access the above address to get the ISOs.

Installing

The installation is simple if you are familiar with the GNU/Linux or UNIX shell command. But if you happen to be not, donot worry and just follow me strictly. Notice that the first symbol "#" (not included the quotation marks) stands for shell prompt while the latter "#" means comment begins here.

#mkdir -p /mnt/iso   # make the mount point for ISOs
#mount -o loop /path/to/Matlab_R14_Mac.Linux.Unix_CD1.iso /mnt/iso   # mount the first ISO
#mkdir -p /usr/local/matlab7/etc   # make the installed directory for Matlab
#cp /mnt/iso/Matlab.7.R14.License-Mac.OS.X-Unix-Linux/Matlab.7.R14.License-Mac.OS.X-Unix-Linux/* \
    /usr/local/matlab7/etc/   # copy the licenses files (license.dat and license.lic)

Then modify the file license.lic with your own $HOSTNAME environment variable as follows:

#echo $HOSTNAME
FlyZhy.ouc.edu.cn
#chmod -R 755 /usr/local/matlab7
#vim /usr/local/matlab7/etc/license.lic
... ...
#cat /usr/local/matlab7/etc/licesne.lic
SERVER FlyZhy.ouc.edu.cn ANY 5353
VENDOR MLM
#
# Mathworks MATLAB V7.0 Release-14 License
#
# --------------------------------------------------------------------
#
# Mendling with Feature lines will only invalidate them!
# Don't forget to set MLM_LICENSE_FILE to point to the saved LICENSE.LIC
#
# --------------------------------------------------------------------
#
... ...

At last, getting started to install by typing the following command:

#cd /usr/local/matlab7/
#/mnt/iso/install
... ...

During the installation, answer the questions by clicking the suitable button when it pops up any windows with some questions. After it finishes the first ISO, it will prompt you to mount the second ISO by popping up a window, then you should mount the second ISO as it requires by typing:

#umount /mnt/iso   # unmount the first ISO
#mount -o loop /path/to/Matlab_R14_Mac.Linux.Unix_CD2.iso /mnt/iso   # mount the second ISO

Then click "OK" or something like that to continue the installation. After the second ISO is finished, just do the same operations to install the third ISO until it finished all the three ISOs.

Configuring

After finished the installation, try to type matlab in your shell, does it work? Of course not. You should do the last thing to make it work in GNU/Linux shell that is add the path "/usr/local/matlab7/bin" into your $PATH environment variable (maybe you should add "export PATH=$PATH:/usr/local/matlab7/bin" into your $HOME/.bashrc file and then execute it by the command . ~/.bashrc or source ~/.bashrc to make the change effect now).

Besides, I'd like to use my Emacs for the frontend interface of Matlab. If you are the same as me, enter into EmacsConfig#matlab page to get that.

top

After

If you are lucky to finish all the process without any error, congratulations and enjoy now. (CLI1)

#matlab   # the default Matlab interface
#matlab -nojvm   # the CLI mode of Matlab
#matlab -nodesktop   # the same as above

top


1. CLI - Command Line Interface which is opposite to GUI - Graphical User Interface.