1. prepare
sudo yum provides libstdc++.so.6
2. download new version libstdc.so
NOTICE: Since I need version 3.4.22+, so I can just update it to 3.4.26. Other versions are the same.
cd /usr/local/lib64
sudo wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip
unzip libstdc.so_.6.0.26.zip
cp libstdc++.so.6.0.26 /usr/lib64
cd /usr/lib64
3. Check the soft link version of libstdc++.so.6
ls -l | grep libstdc++
It may shows like this:
libstdc++.so.6 ->libstdc++.so.6.0.19
4. Remove /usr/lib64 original link libstdc++.so.6, you can backup it before remove.
sudo rm libstdc++.so.6
then, relink it.
sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6
OK, check the newest link
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX