Matlab不能在ubuntu 16.04上运行吗?


18

MATLAB故障转储:

    ------------------------------------------------------------------------
       Segmentation violation detected at Thu Mar  3 01:40:49 2016
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware 
  Current Visual      : 0x20 (class 4, depth 24)
  Default Encoding    : UTF-8
  GNU C Library       : 2.21 stable
  Host Name           : ShapeShifter
  MATLAB Architecture : glnxa64
  MATLAB Root         : /usr/local/MATLAB/R2015b
  MATLAB Version      : 8.6.0.267246 (R2015b)
  OpenGL              : hardware
  Operating System    : Linux 4.5.0-040500rc6-generic #201602281230 SMP Sun Feb 28 17:33:02 UTC 2016 x86_64
  Processor ID        : x86 Family 6 Model 78 Stepping 3, GenuineIntel
  Virtual Machine     : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  Window System       : The X.Org Foundation (11703000), display :0

Fault Count: 1


Abnormal termination:
Segmentation violation

Register State (from fault):
  RAX = 0000000000000000  RBX = 00007f785858f0b8
  RCX = 0000000000000000  RDX = 0000000000000006
  RSP = 00007f78ee99fcb0  RBP = 00007f78ee99fdd0
  RSI = 00007f7860cfd7a0  RDI = 00007f78585658a8

   R8 = 0000000000000030   R9 = 0000000000000000
  R10 = 00007f7858562000  R11 = 00007f78585942d8
  R12 = 00007f78588e5ef0  R13 = 0000000000000006
  R14 = 00007f7858566280  R15 = 00007f788836aa80

  RIP = 00007f790b1de8ca  EFL = 0000000000010206

   CS = 0033   FS = 0000   GS = 0000

Stack Trace (from fault):
[  0] 0x00007f790b1de8ca                        /lib64/ld-linux-x86-64.so.2+00051402
[  1] 0x00007f790b1e74e1                        /lib64/ld-linux-x86-64.so.2+00087265
[  2] 0x00007f790b1e2474                        /lib64/ld-linux-x86-64.so.2+00066676
[  3] 0x00007f790b1e69d3                        /lib64/ld-linux-x86-64.so.2+00084435
[  4] 0x00007f79095c6f09                   /lib/x86_64-linux-gnu/libdl.so.2+00003849
[  5] 0x00007f790b1e2474                        /lib64/ld-linux-x86-64.so.2+00066676
[  6] 0x00007f79095c756d                   /lib/x86_64-linux-gnu/libdl.so.2+00005485
[  7] 0x00007f79095c6fa1                   /lib/x86_64-linux-gnu/libdl.so.2+00004001 dlopen+00000049
[  8] 0x00007f79059ed00a      /usr/local/MATLAB/R2015b/bin/glnxa64/libut.so+00311306
[  9] 0x00007f79008497e5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00456677
[ 10] 0x00007f790083c1af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00401839 _ZN13Mlm_MATLAB_fn8try_loadEv+00000031
[ 11] 0x00007f7900833ae5 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00367333 _ZN13Mlm_MATLAB_fn4loadEv+00000037
[ 12] 0x00007f7900830b09 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_dispatcher.so+00355081 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000057
[ 13] 0x00007f78faf068af /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 14] 0x00007f78fb02a7ff /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 15] 0x00007f78fb02047f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09766015
[ 16] 0x00007f78fafed981 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+09558401
[ 17] 0x00007f78fac4fd6c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 18] 0x00007f78fac3a4c1 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 19] 0x00007f78fac49075 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 20] 0x00007f78fae1a033 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 21] 0x00007f78fade1c40 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07412800
[ 22] 0x00007f78fade4078 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422072
[ 23] 0x00007f78fade4140 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07422272
[ 24] 0x00007f78fae5b6bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07911100
[ 25] 0x00007f78fae5babc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_lxe.so+07912124
[ 26] 0x00007f78ffdbbd0d /usr/local/MATLAB/R2015b/bin/glnxa64/libmwm_interpreter.so+02600205 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKSbIDsSt11char_traitsIDsESaIDsEEPibbP15inWorkSpace_tag+00000077
[ 27] 0x00007f79019b6a12   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00915986 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKSbIDsSt11char_traitsIDsESaIDsEEP15inWorkSpace_tag+00000098
[ 28] 0x00007f79019b6bd8   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00916440 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000120
[ 29] 0x00007f78dafb83b2 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+00861106 _ZN9nativejmi21JmiInternalEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000274
[ 30] 0x00007f78dafdd565 /usr/local/MATLAB/R2015b/bin/glnxa64/libnativejmi.so+01013093 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi21JmiInternalEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000437
[ 31] 0x00007f79019b01c6   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00889286
[ 32] 0x00007f790199d645   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwiqm.so+00812613
[ 33] 0x00007f78fc51abf9 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00146425
[ 34] 0x00007f78fc51b1f4 /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00147956
[ 35] 0x00007f78fc5206cd /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169677
[ 36] 0x00007f78fc5207bc /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00169916
[ 37] 0x00007f78fc520ead /usr/local/MATLAB/R2015b/bin/glnxa64/libmwbridge.so+00171693 _Z8mnParserv+00000749
[ 38] 0x00007f7900b71b4f   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00686927 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 39] 0x00007f7900b5e443   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00607299
[ 40] 0x00007f7900b5ea39   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00608825 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 41] 0x00007f7900b5ff47   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614215 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 42] 0x00007f7900b5ffa7   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00614311
[ 43] 0x00007f7900b5b2fa   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00594682
[ 44] 0x00007f78f451a6b6   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00313014
[ 45] 0x00007f78f4500862   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwuix.so+00206946
[ 46] 0x00007f79014f10df /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002591
[ 47] 0x00007f79014f124c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03002956
[ 48] 0x00007f79014f2d9f /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03009951
[ 49] 0x00007f79014f384c /usr/local/MATLAB/R2015b/bin/glnxa64/libmwservices.so+03012684 _Z25svWS_ProcessPendingEventsiib+00000092
[ 50] 0x00007f7900b5b9b8   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00596408
[ 51] 0x00007f7900b5bcd4   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00597204
[ 52] 0x00007f7900b47fed   /usr/local/MATLAB/R2015b/bin/glnxa64/libmwmcr.so+00516077
[ 53] 0x00007f7909d9c66a              /lib/x86_64-linux-gnu/libpthread.so.0+00030314
[ 54] 0x00007f7909ad201d                    /lib/x86_64-linux-gnu/libc.so.6+01077277 clone+00000109
[ 55] 0x0000000000000000                                   <unknown-module>+00000000


If this problem is reproducible, please submit a Service Request via:
    http://www.mathworks.com/support/contact_us/

A technical support engineer might contact you with further information.

Thank you for your help.

Answers:


31

哦...我发现自己回答:

您可以按照以下说明强制MATLAB加载操作系统提供的库的较新版本:

  • 确定MATLAB的安装位置。
  • 导航到sys/os/glnxa64该安装文件夹中的目录。
  • libstdc++.so.6库重命名为libstdc++.so.6.old

您如何看待萨利赫的提议?--您如何比较他的回答?
莱奥波德·赫兹(LéoLéopoldHertz),2016年

我的已经是那样了,所以我不知道我的解决方案是什么$ ls /usr/local/MATLAB/R2016a/sys/os/glnxa64/ libgcc_s.so.1 libgfortran.so.3.0.0 libifport.so.5 libintlc.so.5 libirc.so libquadmath.so.0.0.0 libstdc++.so.6.old README.libstdc++ libgfortran.so.3 libifcore.so.5 libimf.so libiomp5.so libquadmath.so.0 libstdc++.so.6.0.17 libsvml.so
莫娜·贾拉勒

这对我没有用。我仍然遇到相同的错误
raaj

18

我有这个问题。但是在我安装了matlab-support之后,问题解决了。

sudo apt-get install matlab-support

我在这里回答了我的问题。


您为什么认为此软件包可以解决问题?
莱奥波德·赫兹(LéoLéopoldHertz),2016年

@Masi肯定至少在此软件包中与我有关的问题。这是我要做的唯一解决我的问题的方法,并且有效。
SirSaleh

2
安装matlab-support软件包会为您重命名旧的gcc库,因此它实际上在做同样的事情
Trogdor

+1以找出原因。谢谢。@Trogdor :)
SirSaleh '16

1
这对我有用,但是怡慧的答案不适用于我的情况
莫娜·贾拉勒

1

我在带有GeForce 610显卡并已安装Matlab R2016a的Lenovo ThinkStation S20上使用Ubuntu 16.04LTS。我将上面的库重命名,但是此修复程序对我不起作用。相反,我将显示驱动程序从Nvidia切换到了开源Nouveau。Matlab现在正在工作。


1
欢迎来到Ask Ubuntu!我建议编辑此答案以将其扩展为有关如何执行此操作的特定详细信息。(另请参阅“我如何编写一个好的答案?”,以获取有关在Ask Ask Ubuntu上认为最有价值的答案的一般建议。)
David Foerster,2016年

0

我遇到类似的问题。我认为麻烦是在升级专有Nvidia驱动程序之后开始的。我正在使用具有驱动程序版本的Nvidia GTX 750 Ti,361.45.18并且正在使用的MATLAB版本是2016a。(参见https://devtalk.nvidia.com/default/topic/926199/linux/361-28-crashes-matlab-r2016a/

我试图完全安装并重新安装所有nvidia软件包,但这不能解决我的问题。然后我偶然发现了这个线程,我尝试了@Yihui He(renaming libstdc++.so.6)修复的建议。完成此操作后,MATLAB仍然会崩溃,但是在加载UI之后的几秒钟之后。现在,错误的堆栈跟踪更加清晰了:

Stack Trace (from fault):
[  0] 0x00007f78d2dea18d               /usr/lib/x86_64-linux-gnu/libGL.so.1+00344461

我知道有一种cli使用软件openGL 的开关,尝试过这样做,并且从以下内容开始,MATLAB 2016a不再崩溃:

$ matlab -softwareopengl

如果找到最终解决方案,我将尝试更新此帖子,但这可能会暂时帮助另一个问题。


请注意,使用软件OpenGL会导致您失去一些高级图形功能,如mathworks.com/help/matlab/ref/opengl.html#buwqyz8-6中所述
edwinksl
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.