当尝试启动 ICEMCFD(一种用于流动模拟的网格划分工具)时,我收到一条错误消息,并对其进行分析,LIBGL_DEBUG=verbose
结果如下:
ldzq68@DS-ECSTL-001:/usr/ansys_inc/v121/icemcfd/linux/bin$ LIBGL_DEBUG=verbose ./icemcfd
ICEM_ACN is /usr/ansys_inc/v121/icemcfd/linux
ANSYSLIC_DIR is set to /usr/ansys_inc/shared_files/licensing
args
Window information: depth = 24
class = 4
visual depth = 24 class = 4
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/r600_dri.so
libGL error: dlopen /usr/lib/i386-linux-gnu/dri/r600_dri.so failed (/usr/ansys_inc/v121/icemcfd/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.1.so.1))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/r600_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/r600_dri.so
libGL error: dlopen ${ORIGIN}/dri/r600_dri.so failed (${ORIGIN}/dri/r600_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/dri/r600_dri.so
libGL error: dlopen /usr/lib/dri/r600_dri.so failed (/usr/lib/dri/r600_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/swrast_dri.so
libGL error: dlopen /usr/lib/i386-linux-gnu/dri/swrast_dri.so failed (/usr/ansys_inc/v121/icemcfd/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.1.so.1))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/swrast_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/swrast_dri.so
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Serial number of failed request: 5496
Current serial number in output stream: 5500
阅读其他帖子后我尝试更新 libstdc++6 和
sudo apt-get install libstdc++6
告诉我 libstdc++6 已经是最新版本。
因此这个建议我使用以下方法更新了我的 stdc++ 库
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
但是当我想要启动 ICEM 时仍然收到同样的错误。
答案1
找到后,通过安装 xfonts-75dpi 和 xfonts-100dpi 库解决了这个问题这。