本文介绍了Linux上的matlab无法绘制任何内容(无法加载libstdc ++.so.6:找不到版本"CXXABI_1.3.8")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Fedora 24上运行matlab R2016a,但无法使用plot命令.

I'm running matlab R2016a on Fedora 24 and I can't use the plot command.

这是我得到的错误:

While setting the 'Parent' property of 'Axes':

Can't load '/usr/local/MATLAB/R2016a/bin/glnxa64/libmwosgserver.so': /usr/local/MATLAB/R2016a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version 'CXXABI_1.3.8' not found (required by /lib64/libGLU.so.1)

Can't load '/usr/local/MATLAB/R2016a/bin/glnxa64/libmwosgserver.so': /usr/local/MATLAB/R2016a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version 'CXXABI_1.3.8' not found (required by /lib64/libGLU.so.1)

Error in newplot (line 73)

ax = gca(fig);

我也看过如何解决:[程序名称]/usr/lib/x86_64-linux-gnu/libstdc++.so.6:找不到版本CXXABI_1.3.8'([程序名称]要求)并没有帮助.

Also I have seenHow to fix: [program name] /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8' not found (required by [program name])and it doesn't help.

推荐答案

我所做的是编辑了一个名为.matlab7rc.sh的文件(位于"path_to_ matlab/bin"文件夹中,并且已隐藏),并且取消注释了所有(有几个):

What I did was I edited a file called .matlab7rc.sh (located in "path_to_ matlab/bin" folder and its hidden) and uncommented all lines that were(there are several of them):

LDPATH_PREFIX='$MATLAB/sys/opengl/lib/$ARCH'

以下内容在文件中用于注释此行

The following is stated in the file for uncommenting this line(s)

尽管确实可以解决问题,但我很好奇使用MATLAB随附的OpenGL是否会降低性能,并且总的来说,这种方法与@joe_st_amand的答案相比如何.

Although it certainly did the trick I'm curious whether using OpenGL that was shipped with MATLAB degrades the performance and in general how does this approach compares to @joe_st_amand's answer.

这篇关于Linux上的matlab无法绘制任何内容(无法加载libstdc ++.so.6:找不到版本"CXXABI_1.3.8")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 15:10