Ask Your Question

Revision history [back]

MATLAB bundles its own libstdc++.so.6, which is generally older than the system-provided version. In my case, MATLAB is bundling libstdc++.so.6.0.13, whereas my distribution provides libstdc++.so.6.0.17.

You can try to replace the symlinks to libstdc++.so.6 in /usr/local/MATLAB/R2012a/bin/glnx86 and /usr/local/MATLAB/R2012a/sys/os/glnx86 to point to your system-installed version in /usr/lib. README.libstdc++ in /usr/local/MATLAB/R2012a/sys/os/glnx86 seems to indicate that at least that version is just included as a convenience. As long as the SOVERSION is the same and your system version is newer, you should be OK (and if MATLAB doesn't start, just put the symlinks back to the libstdc++ in your matlab installation folder.) I just changed the symlinks on my MATLAB installation to point to the distribution's libstdc++, it looks like I don't have any issues.