Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

ubuntu16.04运行matlab出现如下错误:

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

出错原因:系统自带的libstdc++.so.6与matlab自带的libstdc++.so.6不兼容!

解决方案:

1 查看Matlab自带的libstdc++.so.6所需GLIBCXX,命令如下:

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

2 查看系统自带libstdc++.so.6所需GLIBCXX所需版本,命令如下:

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

3 删除(重命名)Matlab自带的libstdc++.so.6,并将系统自带的libstdc++.so.6设置为matlab所需的libstdc++.so.6。命令如下:

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

4重新查看系统自带的libstdc++.so.6所需GLIBCXX版本

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

5 重新查看matlab所需GLIBCXX版本

Unbuntu16.04 运行matlab出现error:libstdc++.so.6:version'GLIBXX_3.4.21' not found

参考文章:https://blog.csdn.net/lindahaha/article/details/78791204