Re: PATH not searched properly for gcc version

2018-07-03 Thread Turner, Adrian Keith
Many thanks, using a new shell did the trick. I was not aware things like that were cached. I did indeed use port select. Cheers Adrian On 7/3/18 3:32 PM, Rainer Müller wrote: > On 2018-07-03 21:15, Ryan Schmidt wrote: >> On Jul 3, 2018, at 12:40, Rainer Müller wrote: >> >>> On 2018-07-03 19:02,

Re: PATH not searched properly for gcc version

2018-07-03 Thread Rainer Müller
On 2018-07-03 21:15, Ryan Schmidt wrote: > > On Jul 3, 2018, at 12:40, Rainer Müller wrote: > >> On 2018-07-03 19:02, Turner, Adrian Keith wrote: >>> Also, interesting are the results of which and whereis: >>> which gcc >>> /opt/local/bin/gcc >>> whereis gcc >>> /usr/bin/gcc >> >> That is normal,

Re: PATH not searched properly for gcc version

2018-07-03 Thread Ryan Schmidt
On Jul 3, 2018, at 12:40, Rainer Müller wrote: > On 2018-07-03 19:02, Turner, Adrian Keith wrote: >> Also, interesting are the results of which and whereis: >> which gcc >> /opt/local/bin/gcc >> whereis gcc >> /usr/bin/gcc > > That is normal, whereis does not respect PATH. > >> How do I make m

Re: PATH not searched properly for gcc version

2018-07-03 Thread Rainer Müller
On 2018-07-03 19:02, Turner, Adrian Keith wrote: > Also, interesting are the results of which and whereis: > which gcc > /opt/local/bin/gcc > whereis gcc > /usr/bin/gcc That is normal, whereis does not respect PATH. > How do I make my system find the correct version of gcc without > specifying th

PATH not searched properly for gcc version

2018-07-03 Thread Turner, Adrian Keith
Dear Macports users, I am running OSX version 10.12.6 and MacPorts 2.5.2. I have installed version 7 of gcc with MacPorts: /opt/local/bin/gcc --version gcc (MacPorts gcc7 7.3.0_1) 7.3.0 When I just use "gcc" for the command however I get the OSX pre-installed version: gcc --version Configured w