Unable to run Matlab in EndeavourOS

Running a Linux OS
Trying to launch matlab using;
sudo matlab
And getting an error like this
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 1
/usr/local/MATLAB/R2022b/bin/glnxa64/MathWorksProductAuthorizer.sh: line 14: 8570 Aborted (core dumped) $BINDIR/MathWorksProductAuthorizer $@

 Accepted Answer

Isaac
Isaac on 26 Nov 2022
Edited: Isaac on 26 Nov 2022
I tried ,but failed.
But finally realized the problem, Java was not installed in my System.
Installed using,
yay -S jre jdk
Then, ran ```MathWorksProductAuthoriser```, (which I belive needs Java to work), set the user name to ```root```. Then reboot the system,and ran,
sudo prime-run matlab
Worked like a Charm.
P.S. the ```prime-run``` part is included because I needed to run Matlab on my NVIDIA dGPU and was using ```nvidia-prime``` driver. For optimus and bumblee, please refer archwiki.
Also, the reboot is optional.
@Varun Sai Alaparthi Thanks a lot for the timely reply.

More Answers (2)

Hello Issac,
Please try running the following commands to resolve the issue
cd <matlab installer root directory>
cd /bin/glnxa64
ls | grep libfreetype
mkdir exclude
mv libfreetype.so.6 exclude/
mv libfreetype.so.6.16.0 exclude/
For more information, refer to the below link:
Pedro
Pedro on 12 Apr 2026 at 19:15
Edited: Pedro on 12 Apr 2026 at 19:16
Hey Guys, here is the full tutorial of how to get MATLAB working on EndevourOS/Arch:
Problem
MATLAB installer may fail on Arch Linux due to incompatible system GnuTLS version, resulting in errors or the installer not launching.
1. Download
  • Download MATLAB (matlab_R2025b_Linux.zip)
  • Download compatible GnuTLS:
https://archive.archlinux.org/packages/g/gnutls/gnutls-3.8.9-1-x86_64.pkg.tar.zst
2. Extract MATLAB (IMPORTANT)
cd ~/Downloads
rm -rf matlab_R2025b_Linux
unzip -X -K matlab_R2025b_Linux.zip -d matlab_R2025b_Linux
3. Extract GnuTLS
mkdir -p ~/Downloads/gnutls-extracted
tar -xvf gnutls-3.8.9-1-x86_64.pkg.tar.zst -C ~/Downloads/gnutls-extracted
4. Copy required library
cp ~/Downloads/gnutls-extracted/usr/lib/libgnutls.so* ~/Downloads/matlab_R2025b_Linux/bin/glnxa64/
5. Run installer
cd ~/Downloads/matlab_R2025b_Linux
./install
Hope it works for you as it worked for me

Categories

Products

Release

R2022b

Tags

Asked:

on 17 Nov 2022

Edited:

on 12 Apr 2026 at 19:16

Community Treasure Hunt

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

Start Hunting!