We will replace it with libstdc++.so.6.0.25.
But how to get it? A simple way is to use docker image to get it, like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# show the libc and libstdc++ version ❯ docker container run -it --rm centos:8 bash -c "ls -l /lib64/libc.so.6*" lrwxrwxrwx 1 root root 12 Mar 11 2021 /lib64/libc.so.6 -> libc-2.28.so ❯ docker container run -it --rm centos:8 bash -c "ls -l /lib64/libstdc++.so.6*" lrwxrwxrwx 1 root root 19 Oct 12 2020 /lib64/libstdc++.so.6 -> libstdc++.so.6.0.25 -rwxr-xr-x 1 root root 1661392 Oct 12 2020 /lib64/libstdc++.so.6.0.25
# start a container and copy libstdc++ to the host docker container run -d --name t1 centos:8 init docker container cp t1:/usr/lib64/libstdc++.so.6.0.25 /var/tmp
# replace the host libstdc++ sudo cp /var/tmp/libstdc++.so.6.0.25 /usr/lib64 sudo rm -fr /usr/lib64/libstdc++.so.6 cd /usr/lib64; sudo ln -s libstdc++.so.6.0.25 libstdc++.so.6