==============================
== 广东朝雾技术团队 ==
==============================
广东朝雾科技有限公司

安装-源码安装gcc 4.9.2

wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.gz
tar xzf gcc-4.9.3.tar.gz
cd gcc-4.9.3
./contrib/download_prerequisites
cd ..
mkdir build

cd build
../configure --prefix=/usr/local/gcc-4.9.3 --enable-languages=c,c++,fortran,go --disable-multilib
make

# install
make install

FAQ

gcc编译出错—make[5]: *** [s-attrtab] Killed

内存不足导致的编译出错,解决方法是增加swapfile