Ubuntu 16.04
Executed commands:
wget https://ftp.gnu.org/gnu/gcc/gcc-6.3.0/gcc-6.3.0.tar.bz2 tar xzvf gcc-6.3.0.tar.bz2 cd gcc-6.3.0 ./contrib/download_prerequisites cd ~ mkdir gcc-build && cd gcc-build ../gcc-6.3.0/configure -v --prefix=$HOME/gcc-6.3.0 make make install All operations seem to be completed successfully. But if you type gcc --version then it shows 6.2