Ubuntu22.04 安装jittor出现“GLIBCXX_3.4.30' not found”

错误描述

ImportError: /home/username/miniconda3/envs/jittor/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/username/.cache/jittor/jt1.3.5/g++11.3.0/py3.10.6/Linux-5.15.0-5x62/IntelRCoreTMi7xea/default/cu11.8.89_sm_61/jittor_core.cpython-310-x86_64-linux-gnu.so)

检验

使用strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX 核对后发现GLIBCXX_3.4.30存在
运行结果:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
...
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_3.4.30
GLIBCXX_DEBUG_MESSAGE_LENGTH

解决方案:

ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/username/miniconda3/envs/jittor/bin/../lib/libstdc++.so.6

ref: https://askubuntu.com/questions/1418016/glibcxx-3-4-30-not-found-in-conda-environment

posted @ 2022-10-12 09:56  好问雷  阅读(1066)  评论(0编辑  收藏  举报