ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found

importerror,lib64,libstdc,so,version,cxxabi,not,found · 浏览次数 : 133

小编点评

**服务器版本 libstdc++.so.6:** 0.19 **下载链接:** https://pan.baidu.com/s/10N8uSlu5LNRdT9XT_no38g?pwd=xegh **解压缩包操作:** ```bash unzip libstdc.so_.6.0.26.zipArchive: libstdc++.so.6.0.26.zip inflating: libstdc++.so.6.0.26 ``` **备份原始文件:** ```bash mv libstdc++.so.6 libstdc++.so.6.bak ``` **创建新的版本:** ```bash ln -s libstdc++.so.6.0.26 libstdc++.so.6 ``` **查看版本:** ```bash strings /usr/lib64/libstdc++.so.6 | grep CXXABICXXABI_1.3CXXABI_1.3.1CXXABI_1.3.2CXXABI_1.3.3CXXABI_1.3.4CXXABI_1.3.5CXXABI_1.3.6CXXABI_1.3.7CXXABI_1.3.8CXXABI_1.3.9CXXABI_1.3.10CXXABI_1.3.11CXXABI_1.3.12CXXABI_TM_1CXXABI_FLOAT128CXXABI_1.3.11CXXABI_1.3.2CXXABI_1.3.6CXXABI_FLOAT128CXXABI_1.3.12CXXABI_1.3.9CXXABI_1.3.1CXXABI_1.3.5CXXABI_1.3.8CXXABI_1.3.4CXXABI_TM_1CXXABI_1.3.7CXXABI_1.3.10CXXABI_1.3.3 ``` **总结:** * 服务器版本为 0.19。 * 下载文件为 libstdc++.so.6.0.26。 * 解压缩并创建新的 libstdc++.so.6 版本。 * 将原始 libstdc++.so.6 版本备份到 libstdc++.so.6.bak。

正文

image

[root@localhost PaddleOCR]# strings /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@localhost PaddleOCR]# find / -name "libstdc++.so*"
/var/lib/docker/overlay2/7d699f9875a57ff23aef51f4fa86426bdf0dd8b6c7a975bef8b9a67702030bfd/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/var/lib/docker/overlay2/7d699f9875a57ff23aef51f4fa86426bdf0dd8b6c7a975bef8b9a67702030bfd/diff/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
/var/lib/docker/overlay2/7d699f9875a57ff23aef51f4fa86426bdf0dd8b6c7a975bef8b9a67702030bfd/diff/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20-gdb.py
/var/lib/docker/overlay2/47e007e5bb18d4b777cc56718ee62d2e570c65756dd9f02be30bc0a0e5940ade/diff/usr/lib/libstdc++.so.6
/var/lib/docker/overlay2/47e007e5bb18d4b777cc56718ee62d2e570c65756dd9f02be30bc0a0e5940ade/diff/usr/lib/libstdc++.so.6.0.22
/var/lib/docker/overlay2/1bd11c34f6fe0bb3b2477301d2ebbd398a13e92fb9c58d55788a53726c63a6f1/diff/usr/lib64/libstdc++.so.6
/var/lib/docker/overlay2/1bd11c34f6fe0bb3b2477301d2ebbd398a13e92fb9c58d55788a53726c63a6f1/diff/usr/lib64/libstdc++.so.6.0.19
/var/lib/docker/overlay2/1bd11c34f6fe0bb3b2477301d2ebbd398a13e92fb9c58d55788a53726c63a6f1/diff/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.py
/var/lib/docker/overlay2/1bd11c34f6fe0bb3b2477301d2ebbd398a13e92fb9c58d55788a53726c63a6f1/diff/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyc
/var/lib/docker/overlay2/1bd11c34f6fe0bb3b2477301d2ebbd398a13e92fb9c58d55788a53726c63a6f1/diff/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyo
/var/lib/docker/overlay2/7d531d7dd5d453952c3fdc2cbd977e46ce064ba02e1c516e8e6e0df8e8f3a5b3/diff/usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/lib/libstdc++.so.6
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.so
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.19
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.py
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.19-gdb.pyo
[root@localhost PaddleOCR]# 

目前服务器上包是:libstdc++.so.6.0.19,下载一个libstdc++.so.6.0.26

下载依赖包
链接:https://pan.baidu.com/s/10N8uSlu5LNRdT9XT_no38g?pwd=xegh
提取码:xegh
上传到目录里面/usr/lib64/并解压
image

[root@localhost PaddleOCR]# cd /usr/lib64/
# 解压
[root@localhost lib64]# unzip libstdc.so_.6.0.26.zip
Archive:  libstdc.so_.6.0.26.zip
  inflating: libstdc++.so.6.0.26     
# 备份原来的libstdc++.so.6
[root@localhost lib64]# mv libstdc++.so.6 libstdc++.so.6.bak
# 创建新的的libstdc++.so.6
[root@localhost lib64]# ln -s libstdc++.so.6.0.26 libstdc++.so.6
# 查看版本
[root@localhost lib64]# 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
CXXABI_1.3.9
CXXABI_1.3.10
CXXABI_1.3.11
CXXABI_1.3.12
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.12
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@localhost lib64]# 

image

与ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found相似的内容: