Failed to run matlab gui in Fedora 42

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 Commenti

Note, that Fedora is no supported OS.
You can try the XFCE desktop environment.
Conor Burgess
Conor Burgess il 7 Mag 2025
Modificato: Conor Burgess il 7 Mag 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.

Accedi per commentare.

Risposte (2)

Conor Burgess
Conor Burgess il 2 Mag 2025
Modificato: Conor Burgess il 2 Mag 2025
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 Commenti

This fixed matlab for me. I had the same problem and I just ran the ReinstallMathWorksServiceHost executable and now matlab starts again. Thank you.
Ruth
Ruth il 5 Mag 2025
Modificato: Ruth il 5 Mag 2025
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).
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
I cannot get libgtk2.0-0 on Fedora 42. As far as I can tell it is only available for Debian and Ubuntu.
Apologies, it looks like the package may be named gtk2 on Fedora, so it would be:
sudo dnf install gtk2
Thank you, that worked.
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
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).

Hi, I can confirm this worked and I can launch MATLAB R2025a now without issues in Debian 13. Thanks

yes it's worked fine in fedora 42 now. thanks
Thanks both for confirming!
Had the same issue. Your solution worked for me too. Thank you!
Nuno
Nuno il 10 Nov 2025
Modificato: Nuno il 10 Nov 2025
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.
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.

Accedi per commentare.

reaujahn
reaujahn il 22 Apr 2025
Modificato: reaujahn il 22 Apr 2025
I can reproduce this behaviour after a distro upgrade from fedora 41 to 42.

Categorie

Prodotti

Release

R2024b

Richiesto:

il 19 Apr 2025

Commentato:

il 25 Nov 2025

Community Treasure Hunt

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

Start Hunting!

Translated by