ImportError:libstdc++.so.6:version `CXXABI_1.3.8` not found
现象
1 |
|
分析
解决办法大致分两类,换新链接库和升级gcc环境
换新链接库
strings /usr/lib64/libstdc++.so.6|grep CXXABI
:查看是否有“CXXABI_1.3.8”,没有说明需要安装1
2
3
4
5
6
7
8
9
10[root@orc]# strings /usr/lib64/libstdc++.so.6 | grep 'CXXABI'
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1下载一个
libstdc++.so.6
的高版本,比如libstdc++.so.6.0.25
,并放入到/usr/lib64
目录下。进入
/usr/lib64/
目录下,删除或者重命名libstdc++.so.6
,然后执行重新构建动态库libstdc++.so.6
1
2
3
4
5
6rm -rf libstdc++.so.6
# 删除或重命名
# mv libstdc++.so.6 libstdc++.so.6.bak
# 重新创建符号连接
ln -s libstdc++.so.6.0.25 libstdc++.so.6最后
strings /usr/lib64/libstdc++.so.6|grep CXXABI
查看是否成功1
2
3
4
5
6
7
8
9
10
11[root@orc]# strings /usr/lib64/libstdc++.so.6 | grep 'CXXABI'
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_1.3.8
...
升级gcc
- https=//blog.csdn.net/qq_39715000/article/details/120703444
ImportError:libstdc++.so.6:version `CXXABI_1.3.8` not found
https://flepeng.github.io/002-Linux-71-报错-ImportError:libstdc-so-6:version-CXXABI-1-3-8-not-found/