升级降级GCC都参考文档:
CentOS 6.6 升级GCC G++ (当前最新版本为v6.1.0) (完整)
http://www.cnblogs.com/lzpong/p/5755678.html
此次操作4.9.2到6.1.0版本,在centos6.4 可以通过.
又因版本太高回退到4.9.2
遇到
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
具体操作:https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852
GCC版本下载地址:https://gcc.gnu.org/mirrors.html