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

    1 answer 1

    Everything was decided upgrade to ubuntu 16.10

    • To interfere with the parquet system and the installation of the source - not good - Alexander
    • did not understand why? What kind of parquet system? - Nonverbal
    • Ubuntu installs software from packages. Packages are usually taken from repositories. When you downloaded the source archive, compiled the project and did make install, make installed the software, but did not say the package manager (for example, apt). When you install something using the package manager, it will assume that you have not installed the package that you installed from source and will overwrite it. Worse if manually installing the package will be very different from what is required as a dependency. apt will assume that you have the correct version of the package, but this is no longer the case. - Alexander