[quote]MATLAB R2013a on Ubuntu 12.10: libstdc++ issues when running 64-bit

source: http://blogs.bu.edu/mhirsch/2013/04/matlab-libstdc-issues-when-running-64-bit/

In some systems (here, it was 64-bit Matlab on 64-bit Ubuntu 12.10) you may find an error about the version of libstdc++ being wrong. E.g. when using the system() or unix()commands.

Here’s what worked for me.

1) cd /usr/local/MATLAB/R2013a/sys/os/glnxa64
2) sudo mkdir obsolete
3) sudo mv libstdc* obsolete/
4) sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc* ./

The specific error this fixed for me was calling gnucap from Matlab. I would get the error:
gnucap: /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found (required by gnucap)

when running in Matlab
unix('gnucap -b foo.net')
or
system('gnucap -b foo.net')

此条目发表在 Linux编程 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>