centos 更新 gcc

错误:

1
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/python/python-3.7.3/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
1
2
3
4
5
6
7
8
yum install gmp-devel mpfr-devel libmpc-devel wget
wget https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.gz
tar xf gcc-8.3.0.tar.gz
cd gcc-8.3.0
mkdir build && cd build
../configure --enable-languages=c,c++ --disable-multilib
make && make install
export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH}