原解答网址:https://www.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux
#未完全搬运,只是给一个链接指引
问题阐述
今天在Ubuntu18.04LTS上运行之前建好的simulink的仿真时,只听见duangduang两声报错声,命令行报错了:
>> simulink
Warning: MATLABWindow application failed to launch. Unable to launch the MATLABWindow application
问题解决
在百度上对该问题进行搜索后,我得到了由MATLAB官方团队的解答,现摘录如下.
发生该错误的原因:library compatibility issues,库兼容性的问题
解决问题具体过程:
在Matlab命令行上输入:
>> cd(matlabroot)
>> ! bin/glnxa64/MATLABWindow
情况1:
如果命令行显示:
bin/glnxa64/MATLABWindow: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
那么,你应该在Ubuntu 18.04的终端上输入
sudo apt-get install libgconf-2-4
情况2:
如果命令行显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: g_log_structured
或者显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: g_log_structured_standard
这两种是libglib-2.0.so 出了问题
显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: FT_Get_Var_Blend_Coordinates
或者显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: FT_Done_MM_Var
这两种是libfreetype.so.6出了问题
或者显示:
bin/glnxa64/MATLABWindow: path to/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by _somelibrary_)
这种是libstdc++.so.6出了问题