Why is my Matlab unable to run Simulink/MATLABWindow?

This is my error code when I am trying to start SIMULINK:
Warning: MATLABWindow application failed to launch. Unable to launch the MATLABWindow application
> In sltemplate.ui.StartPage/showWithFallback
In sltemplate.ui.StartPage.show
Referring to a similar issue that has allready been solved I tried the following:
>> cd(matlabroot)
>> ! bin/glnxa64/MATLABWindow
But I get the following error code, that has not been covered by the previously answered question:
bin/glnxa64/MATLABWindow: symbol lookup error: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Done_MM_Var
I am running Matlab R2017b on Manjaro Linux.

 Accepted Answer

bk
bk on 24 Mar 2018
Edited: bk on 24 Mar 2018
Hi,
I had the same issue. I am also running Matlab R2017b on Manjaro Linux with kernel 4.15.12-. This seems to solve the problem in my case:
1) Install the libselinux package from AUR
2) exclud libfreetype* files
sudo mv matlabroot/bin/glnxa64/libfreetype* exclude_path
3) run "! matlabroot/bin/glnxa64/MATLABWindow" as in simulink issues. I got the 2 error code with the proposed solution: "Set aside MATLAB’s copy of the libglib-2.0.so library, located in matlabroot/cefclient/sys/os/glnxa64".
sudo mv matlabroot/cefclient/sys/os/glnxa64/libglib-2.0.so* exclude_path
I executed "! matlabroot/bin/glnxa64/MATLABWindow" once more but the matlab terminal showed only errors. I do not recommend that ;). However, I am able to run simulink and run simulations without errors or warnings so far. Until now, everything seems to work fine :).
Best regards

8 Comments

This seems to solve the problem. Thank you very much. I'm not getting any warnings or errors.
Best regards
Do you mind explaining what exclude_path is? I'm using arch linux, and have the same issue. Thanks
The exclude_path is a path to any folder you like. For example make a new folder named "exclude" in this directory and move the files there, so you can find them in case you need to put them back in place.
excellent. It worked perfectly fine for me using arch linux. Thanks for the assistance
Windows are working now but in my case the keyboard input stopped working. Can't type anything in the log-in screen. Any clues?
#bb Can I ask how did you derive this solution? Worked for me as well on Arch Linux with Matlab R2020a
also, (currently in September 2022) version R2022b does not work on Linux (at least FOR ME), so I installed R2022a and works.
Same issue here. It is quite shameful that such an expensive software is not able to support linux ootb.

Sign in to comment.

More Answers (0)

Categories

Asked:

on 13 Mar 2018

Commented:

on 7 Sep 2023

Community Treasure Hunt

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

Start Hunting!