码迷,mamicode.com
首页 > 其他好文 > 详细

MATLAB 2014a (8.3) Compiler Runtime (MCR)

时间:2017-08-03 17:01:09      阅读:774      评论:0      收藏:0      [点我收藏+]

标签:eem   rip   one   自己   cannot   site   reserve   repeat   design   

在安装的时候可以 ./install -H 界面化安装到自己目录下

 

 

MATLAB 2014a (8.3) Runtime Compiler (MCR) Errors when trying to launch deployed (using deploy tool) application in Ubuntu 13.04.

Right after installation of MCR if one runs the deployed application following error appears:

error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory.
shareimprove this question
 
    
export LD_LIBRARY_PATH=mcr_root/version/runtime/glnxa64:mcr_root/ve??rsion/bin/glnxa64:mc??r_root/version/sys/o??s/glnxa64:mcr_root/v??ersion/sys/opengl/li??b/glnxa64MATLAB Runtime Path Settings for Run-Time Deployment. – alr Mar 19 ‘16 at 15:21

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.

MATLAB 2014a (8.3) Compiler Runtime (MCR)

标签:eem   rip   one   自己   cannot   site   reserve   repeat   design   

原文地址:http://www.cnblogs.com/nkwy2012/p/7280274.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!