1

I've downloaded and installed Matlab 2018b in a folder named Matlab in

/home/user/Matlab

the file I want to run is

/home/user/Matlab/bin/matlab

where matlab is a shell script application. First I place myself in the bin folder

cd /home/user/Matlab/bin

and then I want to run it by

./matlab

I get the following error messages:

MATLAB is selecting SOFTWARE OPENGL rendering.
/home/user/Matlab/bin/glnxa64/MATLAB: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/user/Matlab/bin/glnxa64/libmwms.so)
/home/user/Matlab/bin/glnxa64/MATLAB: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/user/Matlab/bin/glnxa64/libmwmst.so)
/home/user/Matlab/bin/glnxa64/MATLAB: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/user/Matlab/bin/glnxa64/libCppMicroServices.so.3.3.1)

Any suggestions on what I should do?

  • Install other(newer) version of libstdc++6, which supports GLIBCXX_3.4.22. – Ipor Sircer Nov 18 '18 at 20:33
  • I just moved to linux from windows yesterday so I'm not so sharp at this atm. But can I enter a command in the terminal to do this or should I google for that file online, download it and run the installer? (normal windows proceedure). – Parseval Nov 18 '18 at 20:38
  • This did not solve my problem. I did what was outlined here: altlinux.pkgs.org/sisyphus/classic-i586/… – Parseval Nov 18 '18 at 20:50
  • altlinux is a different distribution than ubuntu. Use ubuntu packages on ubuntu. packages.ubuntu.com/… – Ipor Sircer Nov 18 '18 at 21:08
  • So I get to this site: packages.ubuntu.com/xenial/libstdc++6. How do I know which one to choose? – Parseval Nov 18 '18 at 21:14
1

I would install the missing required files first.
    sudo apt-get install libstdc++6
If that does not work:
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
If that does not work post error msg's again as some thing new may be seen as missing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.