On Wed, 29 Aug 2018 at 14:59, KW via gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > I was wondering after compiling gcc why when I type in 'which gcc' it > still defaults to /usr/bin/gcc and not /usr/local/bin/gcc. > > If I compile gcc with a different prefix do you know if gcc will still > be detected by other programs looking for it? > > Do you know how to go about changing the default in OpenSuSE Leap 15? Is > it the same for every linux distro? See http://www.linfo.org/path_env_var.html