【7.4】/lib64/libstdc++.so.6 version CXXABI_1.3.8 not found 的解决办法

报错:

python 导入包时报错 ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found 的解决办法

解决办法:

[root@c02 lib]# 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

[root@c02 lib]# which conda
/data/software/anaconda2/bin/conda

root@c02 lib]# cd /data/software/anaconda2/lib

[root@c02 lib]# strings ./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
CXXABI_1.3.9
CXXABI_1.3.10
CXXABI_1.3.11
CXXABI_TM_1
CXXABI_FLOAT128
CXXABI_1.3
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3.6
CXXABI_FLOAT128
CXXABI_1.3.9
CXXABI_1.3.1
CXXABI_1.3.5
CXXABI_1.3.8
CXXABI_1.3.4
CXXABI_TM_1
CXXABI_1.3.7
CXXABI_1.3.10
CXXABI_1.3.3


[root@c02 lib]# ll |grep libstdc
lrwxrwxrwx  1 root root       19 Jan 24  2019 libstdc++.so -> libstdc++.so.6.0.25
lrwxrwxrwx  1 root root       19 Jan 24  2019 libstdc++.so.6 -> libstdc++.so.6.0.25
lrwxrwxrwx  1 root root       19 Aug 20  2018 libstdc++.so.6.0.21 -> libstdc++.so.6.0.24
-rwxr-xr-x  2 root root  9536208 Aug 17  2018 libstdc++.so.6.0.25


[root@c02 lib]# ll /usr/lib64/ |grep libstdc
lrwxrwxrwx   1 root root       19 Nov 16 14:09 libstdc++.so.6 -> libstdc++.so.6.0.19
-rwxr-xr-x   1 root root   991616 Aug  7 00:52 libstdc++.so.6.0.19

[root@c02 lib]# cp /data/software/anaconda2/lib/libstdc++.so.6.0.25 /usr/lib64/

[root@c02 lib]# rm /usr/lib64/libstdc++.so.6
rm: remove symbolic link ‘/usr/lib64/libstdc++.so.6’? y

ln -s /usr/lib64/libstdc++.so.6.0.25 /usr/lib64/libstdc++.so.6

参考资料

个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn

Sam avatar
About Sam
专注生物信息 专注转化医学