Fangbao's profile我心飞翔PhotosBlogListsMore Tools Help

Blog


    August 12

    Linux下matlab安装技术文档详解

    和其他技术文档一样,网络上的文档五花八门,但没有一个能够顺利应用的,我参考他们的同时,几经辛苦,写点以备自己和后人参考。
     
    1、下载软件,我是在www.verycd.com上下载的,文件有(名字类似)
    Matlab_R14_Mac.Linux.Unix_CD1.iso
    Matlab_R14_Mac.Linux.Unix_CD2.iso
    Matlab_R14_Mac.Linux.Unix_CD3.iso
    Matlab.7.R14.for.MacOSX.Unix.Linux.License.zip
    2、建立一个文件夹,以便加载光盘镜像,如
    mkdir /mnt/temp
    3、加载光盘1:
    mount -o loop *CD1.iso /mnt/temp
    4、创建安装目录,例如
    mkdir /usr/matlab
    5、第一次破解
    把Matlab.7.R14.for.MacOSX.Unix.Linux.License.zip里的license.dat.install.txt改为license.dat并拷贝到/usr/matlab/
    6、安装
    cd /usr/matlab,执行
    /mnt/matlab/install* -t
    如果遇到cp: 无法 stat “/mnt/temp/update/bin/glnxa64/*”: 没有那个文件或目录
    Error writing to /tmp/22475tmwinstall
    The installer is unable to copy files to
    Make sure that /tmp exists, is writable,
    at least 5 megabytes of available space
    后面再加 -glnx86 -nocp即可。
    如果找不到libXp.so.6,执行cp /mnt/temp/update/bin/glnx86/libmwins.so  /usr/lib/libXp.so.6。
    遇到第一个选项,填a(accept),后面一路回车,遇到需要光盘2,3的,另外登陆一个窗口按照加载光盘1
    的方式加载就好了。
    7、第二次破解
    把matlab.7.R14.for.MacOSX.Unix.Linux.License.zip里的license.lic 拷贝到/usr/matlab/etc /下面
    8、运行
    启动matlab:/usr/matlab/bin/matlab -glnx86,进入平台之后加入写好了程序,例如主程序main.m,执行 run main.m即可,退出用exit;
    执行后台运行:nohup /usr/matlab/bin/matlab -glnx86 -m <main.m> main.out &即可。

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://onetfbao.spaces.live.com/blog/cns!393E9866CAB6E396!615.trak
    Weblogs that reference this entry
    • None