matlab,mcr 安装编译

1. matlab 安装 root用户
挂载: mount -o loop /home/hadoop/matlab/R2014b.iso /mnt/cd1
安装: cd /mnt/cd1  
      ./install
导入 crack文件夹下的key code,及导入lic文件激活


安装完成后,将 crack 文件夹下的 libmwservices.so  拷贝覆盖到 /usr/local/MATLAB/R2014A/bin/glnxa64 下


按照MATLAB正常的安装步骤,到激活完整之后,执行./matlab命令仍然无法正常运行MATLAB,出现以下错误提示:
icense checkout failed. license manager error -8.
Make sure the HostID of the license file matches this machine, and that the HostID on the server.
Licensing error: -8,523.
Linux Copy/overwrite libmwservices.so ( from the linux folder provided ) to : /usr/local/MATLAB/R2014A/bin/glnxa64..
所以我们只需将crack中的ibmwservices.so复制到安装目录中bin/glnxa64中覆盖对应的文件,即可.




2. 编译文件
mcc -m filename  例如: ./mcc -m /root/work/code/wqms_quickplot/wqms_create.m
在 /usr/local/MATLAB/R2014b/bin 生成 wqms_create 文件,即执行文件


3. mcr_r2014b 环境安装
./install -mode silent -agreeToLicense  yes
可能会出现Permission denied 问题   
以下3个文件都需要chmod a+x filename
dir/install           dir/bin/glnxa64/install_unix     dir/sys/java/jre/glnxa64/jre/bin/java   


安装完毕后,需要将 /usr/local/MATLAB/MATLAB_Compiler_Runtime/v84/runtime/glnxa64 下的 .so 文件 拷贝覆盖到 /usr/local/MATLAB/MATLAB_Compiler_Runtime/v84/bin/glnxa64 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值