合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
参考[https://www.cnblogs.com/lpbottle/p/install\_gcc.html](https://www.cnblogs.com/lpbottle/p/install_gcc.html) 安装nodejs时,在执行配置编译参数时,报如下警告,后续的编译安装阶段也失败了。因此这里来进行gcc的升级 ``` WARNING: C++ compiler (CXX=g++, 4.8.5) too old, need g++ 6.3.0 or clang++ 8.0.0 WARNING: warnings were emitted in the configure phase INFO: configure completed successfully ``` 当前系统: ``` > cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) ``` 先下载gcc的源码包,地址:[https://ftp.gnu.org/gnu/gcc/](https://ftp.gnu.org/gnu/gcc/) 此案例下载的当前最新:[gcc-10.1.0.tar.gz](https://ftp.gnu.org/gnu/gcc/gcc-10.1.0/gcc-10.1.0.tar.gz) 下载到本地后,ftp上传到 `/usr/local/src/`目录下【也可以在该目录下使用wget直接下载到服务器】,进行解压