Including:
* MathWorks_R14_1.iso
* MathWorks_R14_2.iso
* MathWorks_R14_3.iso
* license.dat
* license.lic
How to Install: commands for your terminal
* #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. (Do it for the 3rd iso)
How to configure:
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).
If you are lucky to finish all the process without any error, congratulations and enjoy now.
#matlab # the default Matlab interface
#matlab -nojvm # the CLI mode of Matlab
#matlab -nodesktop # the same as above
Enjoy matlab on linux =)
Reference
No comments:
Post a Comment