help with gcc on opensuse leap 15

Jonathan Wakely jwakely.gcc@gmail.com
Wed Aug 29 14:01:00 GMT 2018


On Wed, 29 Aug 2018 at 14:59, KW via gcc-help <gcc-help@gcc.gnu.org> 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



More information about the Gcc-help mailing list