MATLAB Answers

what(): Unable to launch the MATLABWindow application during installation

769 views (last 30 days)
Marcello Carboni
Marcello Carboni on 27 Mar 2020
Commented: Domingo Gonzalvez on 28 Mar 2021 at 19:46
So, I'm running a fresh install of Manjaro Gnome and I'm trying to install matlab. I downloaded the installer, unpacked but when I try to run "bash ./install" it gives me the error:
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application
Matlab version is R2020a.

Sign in to comment.

Accepted Answer

shichao ni
shichao ni on 31 Mar 2020
You are missing '"
yay -S libselinux
and retry

Sign in to comment.

More Answers (2)

Brian Zelenke
Brian Zelenke on 23 May 2020
The MATLAB 2020a installer contains its own shared library, but uses the system library System library uses new symbols, which system library has, but MATLAB's library doesn't. So, you have to delete the MATLAB installer's copy of The sequence of commands that worked for me in RHEL 8.2 were:
cd /home/YourUserName/Downloads/matlab_R2020a_glnxa64/bin/glnxa64
sudo su -
cd /home/YourUserName/Downloads/matlab_R2020a_glnxa64
export DISPLAY=':0'
That got the installer to work.
P.S. -- When I got to the step of entering my MathWorks account password in the resulting MATLABWindow application, the password field wouldn't let me type until I selected "Show Details" from the "MathWorks Product Installer" drop-down menu in the top menu bar and then clicked back into the main screen of the MATLABWindow application. Basically, I think I had to remove and restore focus on the MATLABWindow application main screen to get the password field working again.
P.P.S. -- Thanks to Petr at for pointing me in the right direction on this.
Eilert on 16 Mar 2021
This also helps for installing Matlab 2021a on Fedora 33.
After downloading the full files I renamed the crypto lib, and called the install script.
mv bin/glnxa64/ bin/glnxa64/
Using the online loading installer was difficult, because the size of my tmp dir (with tmpfs) was too small, but that also depends on the amount of Toolboxes etc. that needs to be installed.

Sign in to comment.

逸飞 吴
逸飞 吴 on 11 Nov 2020
The above answers don't work for me.
My solution is to run
from my home directory (or it will complain and exit), and things get to work well.
If you want to install MATLAB to somewhere outside your home directory, don't forget to add sudo.
Domingo Gonzalvez
Domingo Gonzalvez on 28 Mar 2021 at 19:46
In Matlab 2021 the file is install_unix. I confirm on Fedora 33 there is the same error and Matlab is not installed. How is it possible to install Matlab ?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!