linux下编译安装gcc-6.1.0
初体验
下载
wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.bz2
准备编译
cd gcc-6.1.0
./contrib/download_prerequisites
编译
mkdir gcc-build-6.1.0
cd gcc-build-6.1.0
../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
make -j4
安装
make install
查看安装
ls /usr/local/bin | grep gcc