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

Jakub
Jakub 2025년 5월 7일
Note, that Fedora is no supported OS.
You can try the XFCE desktop environment.
Conor Burgess
Conor Burgess 2025년 5월 7일
편집: Conor Burgess 2025년 5월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (2개)

Conor Burgess
Conor Burgess 2025년 5월 2일
편집: Conor Burgess 2025년 5월 2일

4 개 추천

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

Mathis
Mathis 2025년 5월 4일
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 2025년 5월 5일
편집: Ruth 2025년 5월 5일
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
Conor Burgess 2025년 5월 7일
편집: Conor Burgess 2025년 5월 9일
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
Ruth 2025년 5월 8일
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
Ruth
Ruth 2025년 5월 10일
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

Hicham
Hicham 2025년 9월 12일
yes it's worked fine in fedora 42 now. thanks
Conor Burgess
Conor Burgess 2025년 9월 12일
Thanks both for confirming!
Daniel
Daniel 2025년 9월 15일
Had the same issue. Your solution worked for me too. Thank you!
Nuno
Nuno 2025년 11월 10일
편집: Nuno 2025년 11월 10일
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
Mahboob 2025년 11월 25일
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.

댓글을 달려면 로그인하십시오.

reaujahn
reaujahn 2025년 4월 22일
편집: reaujahn 2025년 4월 22일

3 개 추천

I can reproduce this behaviour after a distro upgrade from fedora 41 to 42.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2024b

질문:

2025년 4월 19일

댓글:

2025년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by