[linux] Install gcc

2020-10-15 写技术

wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.gz

tar -zvxf gcc-6.1.0.tar.gz --directory=/usr/local/

cd /usr/local/gcc-6.1.0

sudo ./contrib/download_prerequisites

sudo mkdir build

cd build

sudo ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib

sudo make -j4

sudo make install

标签: linux C++

发表评论:

Powered by anycle 湘ICP备15001973号-1