MATLAB 2014a(8.3)编译器运行时错误libmwlaunchermain.so [英] MATLAB 2014a (8.3) Compiler Runtime Errors libmwlaunchermain.so

查看:971
本文介绍了MATLAB 2014a(8.3)编译器运行时错误libmwlaunchermain.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MATLAB 2014a(8.3)运行时编译器(MCR)尝试启动已部署的错误(使用 部署工具)在Ubuntu 13.04中运行.

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

在安装MCR之后,如果有人运行已部署的应用程序,则会出现以下错误:

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.

推荐答案

由于我已经找到了解决这一浪费一天的方法,所以我只想分享一下:

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

这似乎是MathWorks为Linux设计的MATLAB MCR安装脚本的问题.此外,这是一个已知的Ubuntu错误的结果.要对其进行修复,请如下所示将您的MCR添加到$PATH:

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 bug. 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

  • 在您的.profile中添加适当的库文件夹,以便此更改在注销后仍然存在

  • 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
    

  • 在终端中调用以下代码,以确保Ubuntu错误不会重写您的变量:

  • 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

    如果该解决方案不起作用,请尝试从MathWorks网站重新安装MATLAB MCR 8.3,然后重复上述步骤.

    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)编译器运行时错误libmwlaunchermain.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆