How to install R2022a on Fedora 36?

조회 수: 121 (최근 30일)
Mark Thomas
Mark Thomas 2022년 5월 2일
댓글: Kevin 2023년 11월 28일
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.

채택된 답변

Kevin Kelly
Kevin Kelly 2022년 6월 21일
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
Dominik Viebke
Dominik Viebke 2023년 2월 3일
Worked in milliseconds!
Kevin
Kevin 2023년 11월 28일
Thanks for this answer!

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

추가 답변 (4개)

Srikar Gooty
Srikar Gooty 2022년 5월 5일
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
Julio Larco
Julio Larco 2022년 5월 14일
Only remove files " rm libfreetype.so.6*" of the installer. I don't remember where I saw that, but this works for me.
Manel Frigola
Manel Frigola 2023년 1월 27일
This also works for me in Fedora 37 and using export LD_PRELOAD=/usr/lib64/libfreetype.so.6.18.3

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


Viktor Erdelyi
Viktor Erdelyi 2022년 5월 16일
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/

Julio Larco
Julio Larco 2022년 6월 3일

Joshua Rhodes
Joshua Rhodes 2023년 8월 25일
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.)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by