MATLAB 2014a (8.3) Compiler Runtime (MCR)

在安装的时候可以 ./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.

matlab ubuntu matlab-compiler


shareimprove this question

asked Jun 2 ‘14 at 22:22

Artur Yakimovich

9615

 

    

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

add a comment

1 Answer

activeoldestvotes


up vote6down vote

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.

时间: 2024-10-28 14:09:56

MATLAB 2014a (8.3) Compiler Runtime (MCR)的相关文章

(转发)IOS高级开发~Runtime(二)

一些公用类: @interface ClassCustomClass :NSObject{ NSString *varTest1; NSString *varTest2; NSString *varTest3; } @property (nonatomic,assign)NSString *varTest1; @property (nonatomic,assign)NSString *varTest2; @property (nonatomic,assign)NSString *varTest3

(转发)IOS高级开发~Runtime(三)

11.系统类的方法实现部分替换 - (void) methodExchange { Method m1 = class_getInstanceMethod([NSStringclass],@selector(lowercaseString)); Method m2 = class_getInstanceMethod([NSStringclass],@selector(uppercaseString)); method_exchangeImplementations(m1, m2); NSLog(

(转发)IOS高级开发~Runtime(四)

用C代替OC: #import <objc/runtime.h> #import <objc/message.h> #import <stdio.h> extern int UIApplicationMain (int argc,char *argv[],void *principalClassName,void *delegateClassName); struct Rect { float x; float y; float width; float height;

(转发)IOS高级开发~Runtime(一)

IOS高级开发-Runtime(一) IOS高级开发-Runtime(二) IOS高级开发-Runtime(三) IOS高级开发-Runtime(四) 一些公用类: @interface CustomClass : NSObject - (void) fun1; @end @implementation CustomClass - (void) fun1 { NSLog(@"fun1"); } @end @interface TestClass : NSObject @end @imp

刨根问底Objective-C Runtime(2)- Object &amp; Class &amp; Meta Class

Chun Tips 专注iOS开发 刨根问底Objective-C Runtime(2)- Object & Class & Meta Class 上一篇笔记讲述了objc runtime中Self 和 Super的细节,本篇笔记主要是讲述objc runtime中关于Object & Class & Meta Class的细节. 习题内容 下面代码的运行结果是? @interface Sark : NSObject @end @implementation Sark @e

刨根问底Objective-C Runtime(1)- Self &amp; Super

刨根问底Objective-C Runtime(1)- Self & Super - Chun Tips Chun Tips 专注iOS开发 刨根问底Objective-C Runtime(1)- Self & Super 前言 关于Objective-C Runtime一篇好的文档 : Understanding the Objective-C Runtime 译文地址为: http://blog.cocoabit.com/blog/2014/10/06/yi-li-jieobjecti

Windows Runtime(WinRT)

1.提供对设备.操作系统和服务的全面访问能力 2.更方便的调用win32 api,投影到C++.C#/VB.HTML 3.API是异步的 4.XAML-based UI(silverlight,wpf,winphone) 5.开发win8 store app .NET开发人员都对.NET 的P / Invoke和COM Interop 很熟悉了,这两种技术使得.NET人员可以使用Win32 API和COM组件. 创建原生库的方法很多,但是这些工作都得是手工去做,很乏味而且容易出错,从这点来说Wi

理解Objective-C Runtime(四)Method Swizzling

Objective-C对象收到消息之后,究竟会调用何种方法需要在运行期间才能解析出来.那你也许会问:与给定的选择子名称相应的方法是不是也可以在runtime改变呢?没错,就是这样.若能善用此特性,则可发挥出巨大优势,因为我们既不需要源代码,也不需要通过继承子类来覆写方法就能改变这个类本身的功能.这样一来,新功能将在本类的所有实例中生效,而不仅限于覆写了相关方法的那些子类实例.此方案就是大名鼎鼎的「method swizzling」,中文常称之为『方法调配』或『方法调和』或『方法混合』. Meth

格而知之7:我所理解的Runtime(2)

消息发送(Messaging) 8.以上便是runtime相关的一些数据结构,接下来我们回看一开始的疑问: objc_msgSend()函数在执行的过程中是如何找到对应的类,找到对应的方法实现的呢? 这就是消息发送(messaging)的处理过程了: (1).对于上文的Class的数据结构的描述,官方文档只简略了把它们归纳成了两部分:一个指向其父类的指针和一个方法调用表(这个Class的所有方法的selector和实现代码所在地址的关联表): (2).当某个消息被发送到一个对象之后(即对象执行某