[已解决] libGL error: MESA-LOADER: failed to open swrast

在新的服务器中配置好虚拟环境后,利用已有的预训练模型test后,可视化时遇到:

libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /u  sr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
GLFW Error: GLX: Failed to create context: GLXBadFBConfig
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

解决方法[参考]:

cd  /usr/lib/
sudo mkdir dri
sudo ls -s  /lib/x86_64-linux-gnu/dri/swrast_dri.so    swrast_dri.so

出现这个问题:

libGL error: MESA-LOADER: failed to open swrast: /home/wyc/anaconda3/envs/randlanet/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (req   uired by /lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
GLFW Error: GLX: Failed to create context: GLXBadFBConfig
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

 

在自己的虚拟环境中:

 conda install -c conda-forge gcc

问题解决!

你可能感兴趣的:(linux,运维,服务器)