Fix Matlab missing libstdc++ error

if you get an error like:

/usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15’ not found (required by /usr/lib/libGraphicsMagick++.so.3)

Try using system libstdc++ instead of the old version that comes with Matlab as follows:

cd /usr/local/MATLAB/R2013a_Student/sys/os/glnxa64

mv libstdc++.so.6 libstdc++.so.6.bak

ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6

Leave a Comment