|
|
Line 8: |
Line 8: |
| | | |
| === The Fix === | | === The Fix === |
− | A tip from [https://se.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6 this site] solved the problem:
| |
| | | |
− | As explained in the link:
| + | Over at [[https://se.mathworks.com/matlabcentral/answers/142271-matlab-seems-to-install-fine-but-will-not-run-in-ubuntu-14-04-no-error-message-provided a fix]] can be found. |
| | | |
− | "This issue might be due to an incompatibility between the libstdc++ shipped with MATLAB and the libstdc++ shipped with the system that the other application was linked against.
| |
− |
| |
− | "This is caused because the version of this particular library packaged with MATLAB is older than the versions that come with newer Linux operating systems, which causes compatibility issues."
| |
− |
| |
− | He suggests a workaround where you change the name og the listdc++.so.6 file in the matlab folder, so that matlab can't find it and is forced to use the one on your system.
| |
− |
| |
− | Locate the path by running the command:
| |
| <source lang=bash> | | <source lang=bash> |
− | user@myhost ~ ]$ find -name "libstdc++.so.6"
| + | ]$ sudo apt-get install matlab-support |
| </source> | | </source> |
| | | |
− | This is the path I need:
| |
− | ./.local/share/Trash/files/matlab_R2017b_glnxa64/bin/glnxa64/libstdc++.so.6
| |
| | | |
− | Change directory to glnxa64
| |
− | <source lang=bash>
| |
− | user@myhost ~ ]$ cd ./.local/share/Trash/files/matlab_R2017b_glnxa64/bin/glnxa64/libstdc++.so.6
| |
− | </source>
| |
− | Changing the name:
| |
− | <source lang=bash>
| |
− | user@myhost ~ ]$ mv libstdc++.so.6 libstdc++.so.6.old
| |
− | </source>
| |
| And you're done. | | And you're done. |
Latest revision as of 12:28, 23 November 2017
Thanks to my bright student Tobias Valbjørn a fix for starting MatLab from the application launcher was solved.
The Problem:
Matlab R2017b is installed on ubuntu 16.04 LTS. The application does not start when launching the binary. When you run the application from the shell it starts, but shows a problem with this information in it:
'GLIBCXX_3.4.21' not found
The Fix
Over at [a fix] can be found.
]$ sudo apt-get install matlab-support
And you're done.