How to install R2022a on Fedora 36?

Running
Attempt to run the glnxa64 installer reported:
]$ sudo ./install
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
Had to use "sudo kill -9" to close the installer process.
Running MATLABWindow directly reported:
]$ sudo ./bin/glnxa64/MATLABWindow
./bin/glnxa64/MATLABWindow: symbol lookup error: /lib64/libcairo.so.2: undefined symbol: FT_Get_Color_Glyph_Layer
Running NVIDA driver 510.60.02 on kernel 5.17.3:
]$ dnf list installed *nvidia*
Installed Packages
akmod-nvidia.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
kmod-nvidia-5.16.19-200.fc35.x86_64.x86_64 3:510.60.02-1.fc35 @@commandline
kmod-nvidia-5.16.20-200.fc35.x86_64.x86_64 3:510.60.02-1.fc35 @@commandline
kmod-nvidia-5.17.3-302.fc36.x86_64.x86_64 3:510.68.02-1.fc36 @@commandline
nvidia-persistenced.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
nvidia-settings.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia-cuda.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia-libs.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
xorg-x11-drv-nvidia-power.x86_64 3:510.68.02-1.fc36 @rpmfusion-nonfree-updates-testing
]$ dnf list installed kernel
Installed Packages
kernel.x86_64 5.16.19-200.fc35 @updates
kernel.x86_64 5.16.20-200.fc35 @updates
kernel.x86_64 5.17.3-302.fc36 @fedora
]$ uname -a
Linux alice 5.17.3-302.fc36.x86_64 #1 SMP PREEMPT Sun Apr 17 13:22:18 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Running with Wayland or X11 makes no difference.

 Accepted Answer

Kevin Kelly
Kevin Kelly on 21 Jun 2022
I'm using R2022a, removing libfreetype did not work, nor did changing to Xorg, but this did:
$ export LD_PRELOAD=/usr/lib64/libfreetype.so.6
$ ./install

7 Comments

thank you this works, you saved me
This worked for me aswell Fedora 36! Thanks!
Thanks. Only thing that worked on Fedora 36. What is the first line all about, if I may?
Thank you so much
Oh my god you are a genius, thank you!
Worked in milliseconds!
Thanks for this answer!

Sign in to comment.

More Answers (4)

The error "symbol lookup error: /lib64/libcairo.so.2: undefined symbol: FT_Get_Color_Glyph_Layer" can be resolved by setting aside the MATLAB’s copy of the “libcairo.so.2” library, located in <matlabroot>/bin/glnxa64.
Execute the following commands in the Linux shell to perform the above mentioned operation: (You may need root privilege)
# cd /usr/local/MATLAB/R2022b
# cd cefclient/sys/os/glnxa64
# mkdir exclude
# mv libcairo.so* exclude/
After this, MATLABWindow should launch directly on executing "sudo ./bin/glnxa64/MATLABWindow"
Please refer to the following link to a MATLAB Answers post for more information: https://www.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux

3 Comments

This does not work: /usr/local/MATLAB/R2022a does not yet exist, because the installer cannot run.
A check of my R2020a and R2021b (installed on Fedora 35, before upgrade to version 36), shows neither has a "libcairo.so*", either:
]$ ll /usr/local/MATLAB/
total 0
drwxrwxr-x. 1 mark mark 358 Mar 30 18:20 R2020a
drwxrwxr-x. 1 mark mark 352 Feb 19 13:46 R2021b
]$ sudo find /usr/local/MATLAB/ -name "*cairo*"
<<no output>>
Have also searched for libcairo.so* in the unpacked "matlab_R2022a_glnxa64.zip" installer archive: there are several "libc*" files, but no "libcairo.so":
]$ find . -name "*cairo*"
<<no output>>
]$ find . -name "lib[cC]*"
./bin/glnxa64/cppms_cache_manifests/libcurlinitializer_impl.bpf
./bin/glnxa64/libcurl.rights
./bin/glnxa64/libcurl.so.4.7.0
./bin/glnxa64/libcef.so
./bin/glnxa64/libcrypto-mw.so.1.1
./bin/glnxa64/libcryptopp.rights
./bin/glnxa64/libConfigurationAdmin.so.1.1.2
./bin/glnxa64/printsupport/libcupsprintersupport.so
./bin/glnxa64/foundation/httpclient/foundation/httpclient_core/libcurlinitializer
./bin/glnxa64/libCppMicroServices.so.3.6.5
./bin/glnxa64/libcrypto.so.1
./bin/glnxa64/libConfigurationAdmin.so
./bin/glnxa64/libCppMicroServices.so
./bin/glnxa64/libcurl.so.4
https://uk.mathworks.com/matlabcentral/answers/1699735-matlab-crashed-on-start-on-fedora-36#answer_954875 got me further. Reverting to the fedora 35 version of package "cairo-1.17.4" lets (already installed) MATLAB R2021b open a uifigure window (which failed with the fedora 36 "cairo-1.17.6").
In the R2022a installer:
  • sudo ./bin/glnxa64/MATLABWindow now runs without error. It opens a window which allows login to the MathWorks website and download of another copy of the installer ZIP archive. It does not run the unpacked installer.
  • sudo ./installer now starts, but freezes. The installer log stops here:
]$ cat /tmp/mathworks_root.log
(May 05, 2022 17:30:36) ##################################################################
(May 05, 2022 17:30:36) #
(May 05, 2022 17:30:36) # Today's Date:
(May 05, 2022 17:30:36) May 05, 2022 17:30:36 +0100
(May 05, 2022 17:30:36)
(May 05, 2022 17:30:36) System Info
(May 05, 2022 17:30:36) OS: Linux Linux 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64
(May 05, 2022 17:30:36) Arch: amd64
(May 05, 2022 17:30:36) Language: en_GB
(May 05, 2022 17:30:36) Release Description: R2022a Update 1
(May 05, 2022 17:30:36) Installer build number: 9.12.0.1927505
(May 05, 2022 17:30:37) Session key: c4a85a22-3fbe-4211-a896-c5e62a74a1c5
(May 05, 2022 17:30:37) Activation Service Reachable? true
(May 05, 2022 17:30:37) Product Files Folder: /run/media/mark/SSD_850_PRO/nas/mark/Documents/install/archives
(May 05, 2022 17:44:43) ##################################################################
(May 05, 2022 17:44:43) #
(May 05, 2022 17:44:43) # Today's Date:
(May 05, 2022 17:44:43) May 05, 2022 17:44:43 +0100
(May 05, 2022 17:44:43)
(May 05, 2022 17:44:43) System Info
(May 05, 2022 17:44:43) OS: Linux Linux 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64
(May 05, 2022 17:44:43) Arch: amd64
(May 05, 2022 17:44:43) Language: en_GB
(May 05, 2022 17:44:43) Release Description: R2022a Update 1
(May 05, 2022 17:44:43) Installer build number: 9.12.0.1927505
(May 05, 2022 17:44:43) Session key: c5ee6c8d-39ee-4acd-bb54-fc2e1aca0ef9
(May 05, 2022 17:44:43) Activation Service Reachable? true
(May 05, 2022 17:44:43) Product Files Folder: /home/mark/install/archives
No errors are reported, the installer just stops.
Any idea how to get further?
Only remove files " rm libfreetype.so.6*" of the installer. I don't remember where I saw that, but this works for me.
This also works for me in Fedora 37 and using export LD_PRELOAD=/usr/lib64/libfreetype.so.6.18.3

Sign in to comment.

If you get through the installer, you may want to check out how to resolve startup issues here:
https://www.mathworks.com/matlabcentral/answers/1699735-matlab-crashed-on-start-on-fedora-36/
You could also use distrobox and podman to create an ubuntu container and run it in that. (Ubuntu is one of the guaranteed supported distros.)

Categories

Products

Release

R2022a

Asked:

on 2 May 2022

Commented:

on 28 Nov 2023

Community Treasure Hunt

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

Start Hunting!