Installing Matlab on Archlinux

Download the Linux package from Mathworks.

  1. Before installing I’ve checked the Archlinux wiki:

https://wiki.archlinux.org/index.php/MATLAB

2. Just trying to execute the install script I was getting this error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Unable to launch the MATLABWindow application

3. I decided to install Matlab using the AUR package:

https://aur.archlinux.org/packages/matlab#comment-735882

4. Installed all dependencies from the AUR package

5. Still some problems…. So checking the comments from the AUR package, I found this comment:

While trying to install r2020a I had this error after executing ./install:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Unable to launch the MATLABWindow application

I solved this by installing libselinux (in AUR).

For the record: I found the missing dependency by executing ./bin/glnxa64/MATLABWindow.

Besides, it works without gtk2 (perhaps it now depends on gtk3).

https://aur.archlinux.org/packages/matlab#comment-735882

6. After installing libselinux I could execute the install script.