-
-
Save pgrepds/7c9a7e29a8b649369951e2002a85a3d0 to your computer and use it in GitHub Desktop.
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/ | |
``` |
Thanks...This works
also, (currently in September 2022) version R2022b does not work on Linux (at least FOR ME), so I installed R2022a and works.
Last current version (R2022b) may not work correctly, so you can use R2022a instead. Also, for issues like: "Unable to launch the MATLABWindow application. The exit code was: 127" or "symbol lookup error: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Get_Transform" , follow this: https://wiki.archlinux.org/title/MATLAB#Unable_to_launch_the_MATLABWindow_application.
If you want to know what problems gave me R2022b, other than the "classic" symbol lookup error that is fixable, it gave to me:
"$ ./matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
[allexj@Archy bin]$ 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
/home/allexj/Desktop/matlab/bin/glnxa64/MathWorksProductAuthorizer.sh: line 14: 292290 Aborted (core dumped)
and "$ ./glnxa64/MATLABWindow
./glnxa64/MATLABWindow: /home/allexj/Desktop/matlab/bin/glnxa64/libtiff.so.5: version `LIBTIFF_4.0' not found (required by /usr/lib/libgdk_pixbuf-2.0.so.0)"
@All3xJ For me removing libtiff*
from bin/glnxa in my matlab installation fixed the error below
Thank you very much!
@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!
thx good sir
Thank you, it helped me.
thank you very much :)
Also you need to run xhost +SI:localuser:root
for the installer window to show when installing with sudo
Can confirm this also works for Fedora 36!
Do you mean cd bin/glnxa64
? I don't think you want the path to begin /bin
...
brooooooo it works.
And yes, he means cd bin/glnxa64
This is awesome i been suffering for days, thanks.
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.
thanks bro you're huge, man
thx sirr, my prob solved
Thank you! Problem solved on Fedora36 running Kernel:6-1-14.
You saved my day! Thank you!
Thanks!
Omg, thank you! it works on fedora
These files have been finally removed by default on R2023a, now it works out of the box
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.
Mine still not works... After doing that I have the exact same error, any idea to solve it?
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
You are genius! Thanks
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.
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?
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
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?
You nailed it!