Arch Linux Matlab 命令窗口创建失败

Arch Linux Matlab 命令窗口创建失败

我刚刚在 matlab 中更改了字体,当我重新打开它时,它崩溃了。我在 Steam Deck 上运行 Matlab,这是一个基于 Arch Linux 的系统。以下是日志。

MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open radeonsi: /home/deck/matlab/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /home/deck/matlab/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/kms_swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /home/deck/matlab/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
failed to load swrast driver
Gtk-Message: 23:26:44.587: Failed to load module "canberra-gtk-module"

答案1

这是几个错误,需要不同的解决方案。在 Gentoo Linux 上我也遇到了 GLIBCXX_3.4.29 问题。通过以下解决方法,可以帮助 MATLAB 找到该文件

ln -sf /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6.0.30 /usr/local/MATLAB/R2022a/bin/glnxa64/libstdc++.so.6

您必须根据您的版本/系统调整目录。

Failed to load module "canberra-gtk-module"让我们在一个单独的问题中 解决第二部分:MATLAB 警告:无法加载模块“canberra-gtk-module”

也可以看看:

相关内容