[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/并解压
[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]#