matlab 2014 compiler,MATLAB 2014a (8.3) Compiler Runtime (MCR)

Since I have already found a solution to this problem wasting a day, I just want to share it:

This seems to be a problem of MATLAB MCR installation script designed for Linux by MATHWORKS. Furthermore, it is a result of a known Ubuntu bughttps://bugs.launchpad.net/ubuntu/+source/xorg/+bug/380360. To fix it, add your MCR to the $PATH as shown below:

First make sure to add the missing files to the right folder, in terminal:

sudo cp /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64/*/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64

Add the proper library folder to your .profile, such that this change will stay after logout ubuntu: gedit .profile

In the end of the file add following lines:

#MATLAB MCR

export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64

export XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/X11/app-defaults

export PATH=$PATH:$LD_LIBRARY_PATH

export PATH=$PATH:$XAPPLRESDIR

Invoke following code in the terminal to make sure that Ubuntu bug doesn‘t re-write your variable:

echo STARTUP=\"/usr/bin/env LD_LIBRARY_PATH=\${LD_LIBRARY_PATH} \${STARTUP}\" | sudo tee /etc/X11/Xsession.d/90preserve_ld_library_path

Reboot

If this solution doesn‘t work, try to reinstall MATLAB MCR 8.3 from the MATHWORKS website and repeat the steps.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值