Skip to content

Instantly share code, notes, and snippets.

@pgrepds
Last active June 12, 2025 06:51
Show Gist options
  • Select an option

  • Save pgrepds/7c9a7e29a8b649369951e2002a85a3d0 to your computer and use it in GitHub Desktop.

Select an option

Save pgrepds/7c9a7e29a8b649369951e2002a85a3d0 to your computer and use it in GitHub Desktop.
Matlab R2022a ArchLinux installer problem fix
I got problems installing Matlab R2022a on Arch. Running the installer throws the following error:
```
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: 127
fish: Job 1, 'sudo ./install' terminated by signal SIGABRT (Abort)
```
I fixed it by running the following commands.
```bash
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/
```
@Myralllka
Copy link
Copy Markdown

Thank you very much!

@Godalin
Copy link
Copy Markdown

Godalin commented Nov 13, 2022

@All3xJ For me removing libtiff* from bin/glnxa in my matlab installation fixed the error below

Thank you very much! I had the same problem but I could not find any of the .so files mentioned elsewhere. Now I finally fixed it. Thanks a lot!

@ygarasab
Copy link
Copy Markdown

thx good sir

@mebasoglu
Copy link
Copy Markdown

Thank you, it helped me.

@1nikolas
Copy link
Copy Markdown

thank you very much :)

@1nikolas
Copy link
Copy Markdown

Also you need to run xhost +SI:localuser:root for the installer window to show when installing with sudo

@adrylain
Copy link
Copy Markdown

Can confirm this also works for Fedora 36!

@wgmitchener
Copy link
Copy Markdown

Do you mean cd bin/glnxa64 ? I don't think you want the path to begin /bin...

@codingPotato21
Copy link
Copy Markdown

brooooooo it works.
And yes, he means cd bin/glnxa64
This is awesome i been suffering for days, thanks.

@pgrepds
Copy link
Copy Markdown
Author

pgrepds commented Feb 11, 2023

Yes, sorry. It is cd bin/glnxa64. I have corrected it. Furthermore, the command ls | grep libfreetype is obviously not necessary to fix the issue. I have just included my full "workflow" in which I have used the command to check if the files exist.

@visnu2131
Copy link
Copy Markdown

thanks bro you're huge, man

@tanjidor
Copy link
Copy Markdown

tanjidor commented Mar 7, 2023

thx sirr, my prob solved

@subnat1
Copy link
Copy Markdown

subnat1 commented Mar 9, 2023

Thank you! Problem solved on Fedora36 running Kernel:6-1-14.

@zinwang
Copy link
Copy Markdown

zinwang commented Mar 17, 2023

You saved my day! Thank you!

@arduinocc04
Copy link
Copy Markdown

Thanks!

Copy link
Copy Markdown

ghost commented Apr 20, 2023

Omg, thank you! it works on fedora

@1nikolas
Copy link
Copy Markdown

These files have been finally removed by default on R2023a, now it works out of the box

@Pherrara
Copy link
Copy Markdown

Pherrara commented May 7, 2023

Thanks, this solved the issue on Arch.
For those having problems: be sure to go to /bin/glnxa64, I was in cefclient/sys/os/glnxa64 like people in other threads suggested but this is a different (altough similar) fix.

@smoreira00
Copy link
Copy Markdown

Mine still not works... After doing that I have the exact same error, any idea to solve it?

@glinux99
Copy link
Copy Markdown

I just spent a while to find the solution, luckily your solution works well! but I think matlab should include this in their code because I'm sure that at this moment, another person is struggling like me I did trying all the solutions at hand.
Thank you

@igorhlx
Copy link
Copy Markdown

igorhlx commented Jan 18, 2024

You are genius! Thanks

@joezhouchenye
Copy link
Copy Markdown

Thanks. Matlab is driving me crazy. R2023b can only be launched through the terminal and it wouldn't launch by creating a desktop file. R2022b has this problem.

@AshkanV
Copy link
Copy Markdown

AshkanV commented Feb 2, 2024

Thanks. Matlab is driving me crazy. R2023b can only be launched through the terminal and it wouldn't launch by creating a desktop file. R2022b has this problem.

did you try adding -desktop argument to your .desktop file?

@beka2025
Copy link
Copy Markdown

Helow, mine doesnt work. It gives this
root@DESKTOP-39TIRD9:/mnt/R2024a/bin/glnxa64# mv libfreetype.so.6 exclude/
mv: cannot stat 'libfreetype.so.6': No such file or directory
root@DESKTOP-39TIRD9:/mnt/R2024a/bin/glnxa64#
Any help? Thanks

@alimostafavi24
Copy link
Copy Markdown

I have the same issue. Neither libfreetype.so nor libtiff exist in the /bin/glnxa64. How can I figure it out which file to remove?

@MHN2003
Copy link
Copy Markdown

MHN2003 commented Jan 25, 2025

Perfect, Thank you very much...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment