Failed to run matlab gui in Fedora 42
Afficher commentaires plus anciens
os: Fedora 42
DE: KDE Plasma 6.3.4
WM: KWin (Wayland)
Kernel: Linux 6.14.2-300.fc42.x86_64
Everything works well in Fedora 41, but I cannot run matlab After upgrading to Fedora 42. And get the output below.
MATLAB is selecting SOFTWARE rendering.
Unable to communicate with required MathWorks services (error 5201).
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/5201
I have read this Why do I receive Error 5201 - Unable to access services required to run MATLAB, reinstalled MathWorksServiceHost and reboot my computer. Those cannot solve. The autostart script of Mathworks Service Host always crash. See the output below:

2 commentaires
Jakub
le 7 Mai 2025
Note, that Fedora is no supported OS.
You can try the XFCE desktop environment.
Conor Burgess
le 7 Mai 2025
Modifié(e) : Conor Burgess
le 7 Mai 2025
XFCE is a Desktop which you can use on various Linux distros; using XFCE doesn't guarantee that you are using a supported distribution. Our supported Linux distributions are shown here.
Réponses (2)
Conor Burgess
le 2 Mai 2025
Modifié(e) : Conor Burgess
le 2 Mai 2025
4 votes
This is due to changes in glibc 2.41 which have impacted dynamic library loading. The latest MathWorks Service Host release (2025.5.0.3) should resolve this - it wasn't released when you tried the first time, but if you follow the instructions in this answer to run the MathWorks Service Host reinstaller again, it will ensure you have the latest version and should resolve this issue.
14 commentaires
Mathis
le 4 Mai 2025
This fixed matlab for me. I had the same problem and I just ran the ReinstallMathWorksServiceHost executable and now matlab starts again. Thank you.
I have also upgraded Fedora 41 to Fedora 42, and this broke my Matlab installation. Unfortunately reinstalling the Mathworks Service Host hasn't fixed the problem for me.
When I tried to run ReinstallMathWorksServiceHost I had the error
/tmp/mwse_2996772494/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
I followed the manual reinstallation instructions and tried to re-open Matlab but still receive the error
Unable to communicate with required MathWorks services (error 5201).
Conor Burgess
le 7 Mai 2025
Modifié(e) : Conor Burgess
le 9 Mai 2025
Thanks - we'll look into the missing library issue - it seems to be due to an incorrect rpath in the executable. In the meantime, this command should install the required library and get the reinstaller working:
sudo dnf install libgtk2.0-0
EDIT: per below, this should be:
sudo dnf install gtk2
Ruth
le 8 Mai 2025
I cannot get libgtk2.0-0 on Fedora 42. As far as I can tell it is only available for Debian and Ubuntu.
Conor Burgess
le 9 Mai 2025
Apologies, it looks like the package may be named gtk2 on Fedora, so it would be:
sudo dnf install gtk2
Ruth
le 10 Mai 2025
Thank you, that worked.
Maria del Carmen
le 4 Sep 2025
Hi @Conor Burgess not sure I can follow up on this question in this forum. I have the exact same problem for a different Linux distribution:
Debian 13 Trixie
Kernel 6.12.41+deb13-amd64
KDE Plasma Version 6.3.6
I suspect the answer is that Debian 13 too new, and perhaps not compatible with R2025a? But my colleague has Debian 13 and working Matlab R2025a.
During troubleshooting, when trying this:
wget https://www.mathworks.com/MathWorksServiceHost/glnxa64/ReinstallMathWorksServiceHost
chmod +x ReinstallMathWorksServiceHost
./ReinstallMathWorksServiceHost
I get /tmp/mwse_1617356865/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
I have libgtk-4-1 (current for Debian 13) installed, so clearly newer than 2.0
Thanks
Conor Burgess
le 5 Sep 2025
That should be fixed with the most recent release, but the URL redirect hasn't been changed yet. This should work though (please let me know how you get on?):
wget https://ssd.mathworks.com/supportfiles/downloads/MathWorksServiceHost/v2025.9.0.2/reinstallers/glnxa64/ReinstallMathWorksServiceHost
chmod +x ReinstallMathWorksServiceHost
./ReinstallMathWorksServiceHost
(you may need to remove any existing download of ReinstallMathWorksServiceHost).
Maria del Carmen
le 7 Sep 2025
Hi, I can confirm this worked and I can launch MATLAB R2025a now without issues in Debian 13. Thanks
Hicham
le 12 Sep 2025
yes it's worked fine in fedora 42 now. thanks
Conor Burgess
le 12 Sep 2025
Thanks both for confirming!
Daniel
le 15 Sep 2025
Had the same issue. Your solution worked for me too. Thank you!
this hasn't worked for me. Getting the following error (not a connection problem):
[root@localhost Downloads]# ./ReinstallMathWorksServiceHost -mode silent
The application could not connect to MathWorks.
For more information on resolving this issue, see this <a href="https://www.mathworks.com/pi_ce_mci_glnxa64">support article</a>
The distro is rocky8 and matlab 2024b works fine. Having issues with version 2025b.
Mahboob
le 25 Nov 2025
ReinstallMathWorksServiceHost didn't work for me. Instead I had to delete .Mathwork directory from my $HOME. Check if you have it in /root/.Mathworks, then remove it too.
I can reproduce this behaviour after a distro upgrade from fedora 41 to 42.
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!