安装主要分为以下步骤(超级用户):
1) 把matlab2012a.iso放在当前目录下,或者用cd命令将使当前目录为matlab2012a.iso所在的目录
2) 在终端运行命令挂载镜像文件,若iso文件名为Mathworks.Matlab.R2012a.iso:
$ sudo mount -o loop Mathworks.Matlab.R2012a.iso /mnt
3 ) 跳转到挂载目录
$ cd /mnt
4 ) 安装
$ sudo ./install
……
完成后卸载镜像文件:
$ cd ~
$ sudo umount /mnt
以上部分参考网址:http://forum.ubuntu.org.cn/viewtopic.php?f=122&t=373776
常见问题:
1,激活不成功的提示:
Could not complete activation because the License File could not be written to the disk. You might not have write permission on the License File or the folder.
借鉴网上的做法,如下解决解决:
Linux:
_________
On Linux you get this error because you don't have permissions for the license folder. An easy way to get past this is by launching the activation script with sudo:
cd $MATLAB/bin/$ARCH
sudo ./activate_matlab.sh
(where $MATLAB is your root MATLAB installation folder, and $ARCH is either glnx86 or glnxa64 depending on if you installed 32- or 64-bit MATLAB.)
比如本人根据本机的matlab安装目录,输入以下命令激活:
$ cd /usr/local/MATLAB/R2012a/bin/$ARCH
$ sudo ./activate_matlab.sh
2,快捷键的问题:本人选择网上提供的一种较为简便的方法,即在软件中心里搜“matlab”,之后下载安装显示的辅助软件即可。
需要提供maltab的安装目录,如:/usr/local/MATB/R2012a