系统自带的gcc版本低,其他工具需要高版本的gcc支持。
[root@datasrv ~]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
下载自己需要的gcc版本,这里需要6.3.0
解压安装包,源码安装,提示如下GMP、MPFR、MPC三个依赖
tar -xf gcc-6.3.0.tar.gz
cd gcc-6.3.0/
./configure
...省略
configure: error: Building GCC requires GMP