I have installed gcc 9.2 so if I do
gcc --version
I get
gcc (GCC) 9.2.0
But whenever I install something I get the following
-- The C compiler identification is GNU 7.4.0
If I do
which gcc
I get
/usr/local/bin/gcc
and
/usr/local/bin/gcc --version
gives me
gcc (GCC) 9.2.0
How can I solve this?