Followed the following procedure to upgrade my gcc from 4.8 to 6.3 on my Ubuntu 14.04, (as described by Update GCC to the 6.3 version )
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 -j16
sudo make install -j16
But I was not able to see the upgraded version of gcc when given gcc -v
Can anyone suggest a solution for this ?
Thank you in advance.