Difference between revisions of "MatLab issue"

From Klaus' wiki
Jump to: navigation, search
(Created page with "Thanks to my bright student Tobias Valbjørn a fix for starting MatLab from the application launcher was solved. '''Problem:''' Matlab R2017b is installed on ubuntu 16.04 LT...")
 
Line 1: Line 1:
 
Thanks to my bright student Tobias Valbjørn a fix for starting MatLab from the application launcher was solved.
 
Thanks to my bright student Tobias Valbjørn a fix for starting MatLab from the application launcher was solved.
  
'''Problem:'''
+
=== 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:
 
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:
Line 7: Line 7:
 
  'GLIBCXX_3.4.21' not found
 
  'GLIBCXX_3.4.21' not found
  
 +
=== The Fix ===
 
A tip from [https://se.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6 this site] solved the problem:  
 
A tip from [https://se.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6 this site] solved the problem:  
  
Line 33: Line 34:
 
user@myhost ~ ]$ mv libstdc++.so.6 libstdc++.so.6.old
 
user@myhost ~ ]$ mv libstdc++.so.6 libstdc++.so.6.old
 
</source>
 
</source>
 +
And you're done.

Revision as of 10:46, 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

A tip from this site solved the problem:

As explained in the link:

"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:

user@myhost ~ ]$ find -name "libstdc++.so.6"

This is the path I need:

./.local/share/Trash/files/matlab_R2017b_glnxa64/bin/glnxa64/libstdc++.so.6

Change directory to glnxa64

user@myhost ~ ]$ cd ./.local/share/Trash/files/matlab_R2017b_glnxa64/bin/glnxa64/libstdc++.so.6

Changing the name:

user@myhost ~ ]$ mv libstdc++.so.6 libstdc++.so.6.old

And you're done.