RE: help with gcc on opensuse leap 15

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Have you checked PATH variable like:

$ echo "$PATH"
/bin:/usr/bin:/usr/local/bin
$

?

gcc executable which was placed in /usr/bin will be found first. You will have to specify path to your gcc installation and libraries manually  in this case.

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx <gcc-help-owner@xxxxxxxxxxx> On Behalf Of KW via gcc-help
Sent: Wednesday, August 29, 2018 5:59 PM
To: gcc help <gcc-help@xxxxxxxxxxx>
Subject: help with gcc on opensuse leap 15

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?

KW





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux