重新编译gcc

strings /usr/lib64/libstdc++.so.6 | grep CXXABI
yum install gmp-devel mpfr-devel libmpc-devel -y
cd download
wget ftp://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xz
xz -d gcc-9.2.0.tar.xz
tar -vxf gcc-9.2.0.tar
cd gcc-9.2.0
./configure --disable-multilib --enable-languages=c,c++ --prefix=$HOME/local
make -j4   # -j4  四个进程
make -j install

vim /etc/profile  source /etc/profile
export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib64

cd /root/local/lib64   
ll libstdc++.so*  # 查看新编译的gcc

cd /usr/lib64/
ll libstdc++.so*
mv libstdc++.so.6 libstdc++.so.6.bak   # 删除连接
ln -s /root/local/lib64/libstdc++.so.6.0.27 libstdc++.so.6   # 建立新的连接