neon linux 2023a matlab出错解决

1、错误信息:
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file ordirectory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver

2、主要是系统的libstdc库和matlab的脱节了,建立个链接即可:

cd  /usr/local/MATLAB/R2023a/bin/glnxa64
sudo ln -s /lib/x86_64-linux-gnu/libstdc++.so.6.0.30 libstdc++.so.6

3、如果还有问题,大概率需要执行:

opengl('save','software');

4、建立桌面快捷方式:

cd  /usr/share/applications
sudo vim matlab.desktop
将一下内容输入文本:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=matlab
Type=Application
Exec=/usr/local/MATLAB/R2023a/bin/matlab -desktop
Icon=/usr/local/MATLAB/R2023a/bin/glnxa64/cef_resources/matlab_icon.png
Terminal=False
Comment=Scientific computing environment
保存后,建立链接
sudo ln -s/usr/share/applications/matlab.desktop /home/guochaoxxl/.Desktop/

应该差不多了。

posted @ 2023-06-21 00:37  叕叒双又  阅读(1060)  评论(0编辑  收藏  举报