首页 > 系统相关 >centos7 解决libstdc++.so.6.0.19版本问题

centos7 解决libstdc++.so.6.0.19版本问题

时间:2022-09-23 15:13:45浏览次数:60  
标签:libstd CXXABI c++ centos7 so.6 lib64 root

问题描述:ImportError: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8’ not found

查看:

[root@localhost lib64]# find / -name libstdc++.so.6
/usr/lib64/libstdc++.so.6
[root@localhost lib64]# 
[root@localhost lib64]# 
[root@localhost lib64]# ll /usr/lib64/libstdc++.so.6
lrwxrwxrwx 1 root root 19 3月  24 20:29 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
[root@localhost lib64]# 
[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_TM_1
[root@localhost lib64]# 
流程

各版本支持查看:https://centos.pkgs.org/7/centos-aarch64/libstdc++-4.8.5-44.el7.aarch64.rpm.html

解决:centos8 拷贝一个libstdc++.so.6.0.25

[root@localhost ~]# cd /usr/lib64/
[root@localhost lib64]# 
[root@localhost lib64]# rz
rz waiting to receive.
Starting zmodem transfer.  Press Ctrl+C to cancel.
Transferring libstdc++.so.6.0.25...
  100%    1622 KB    1622 KB/sec    00:00:01       0 Errors  

[root@localhost lib64]# ll libstdc++*
lrwxrwxrwx 1 root root      19 3月  24 20:29 libstdc++.so.6 -> libstdc++.so.6.0.19
-rwxr-xr-x 1 root root  995840 9月  30 2020 libstdc++.so.6.0.19
-rw-r--r-- 1 root root 1661480 4月  12 13:33 libstdc++.so.6.0.25
[root@localhost lib64]# 
[root@localhost lib64]# rm -rf libstdc++.so.6
[root@localhost lib64]# ln -sf libstdc++.so.6.0.25 libstdc++.so.6
[root@localhost lib64]# chmod 755 libstdc++.so.6.0.25
[root@localhost lib64]# 
[root@localhost lib64]# ll libstdc++*
lrwxrwxrwx 1 root root      19 4月  12 13:59 libstdc++.so.6 -> libstdc++.so.6.0.25
-rwxr-xr-x 1 root root  995840 9月  30 2020 libstdc++.so.6.0.19
-rwxr-xr-x 1 root root 1661480 4月  12 13:33 libstdc++.so.6.0.25
[root@localhost lib64]# 
[root@localhost lib64]# 
[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_TM_1
CXXABI_FLOAT128
[root@localhost lib64]#
解决流程

 

标签:libstd,CXXABI,c++,centos7,so.6,lib64,root
From: https://www.cnblogs.com/NGames/p/16135639.html

相关文章